Ⅰ 對PHP,MYSQL有一點了解,想做購物車系統,有更簡單的辦法嗎,好比網上下載什麼的。。。
你的購物車是登錄前可以用還是登錄後才能用?
Ⅱ 你是不是有一個連接mysql資料庫的jsp購物車代碼 能發給我嗎
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="com.ikupao.domain.customer.BuyCart"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'customer_dish.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
歡迎您的光臨!你選擇了以下菜單:<br>
<table border="1">
<tr>
<td>菜的名稱</td>
<td>口味</td>
<td>份量</td>
<td>售價</td>
<td>數量</td>
<td>合計</td>
<td>操作</td>
</tr>
<%
Map<Integer,BuyCart> map=(Map<Integer,BuyCart>)session.getAttribute("cart");
Set<Integer> key=map.keySet();
for(Integer k:key)
{
BuyCart cart=map.get(k);
int count=0;
count+=cart.getSum()*cart.getPrice();
%>
<tr>
<td><%=cart.getName() %></td>
<td><%=cart.getFlavorname() %></td>
<td><%=cart.getWeightname() %></td>
<td><%=cart.getPrice() %></td>
<td><%=cart.getSum() %></td>
<td><%=cart.getSum()*cart.getPrice() %></td>
<td><button onclick="location.href='/control/customerdish/customersdish!deleteCart.action?id=<%=cart.getId() %>'">刪除</button></td>
</tr>
<%
}
%>
</table>
您本次一共消費${count}元!
</body>
</html>
Ⅲ 購物車裡面有10個項目,如何批量提交到資料庫保存
訂單表和商品表一對多,一個訂單有多個商品。訂單表:ID、訂單號、顧客姓名、聯內系方式容、配送地址商品表:ID、訂單ID、商品名稱、商品價格、商品數量添加的時候先添加一條訂單返回mysql_insert_id()做為關聯。
Ⅳ 求一個servlet的豆漿機購物系統要有mysql資料庫一定要有購物車急……謝謝
買一個去吧,有服務還有售後,網上的都不穩定且沒有授權,只能使用一個月,且沒有穩定性。
Ⅳ php 和mysql 做的購物車代碼
自己從網路上搜吧 ... 不少 ...
Ⅵ 求一個連接mysql資料庫的jsp購物車代碼,我是新手,可以告訴我具體怎麼做
有現在沒有帶碼,你可以把購物車里的條目,形成一條條數據存入資料庫,就行了專.當每次增加或刪除購物車的條目屬的時候就做一次請求,把數據存入資料庫 ,我也是新手,希望我的回答能給你點起發
你看看這個
http://..com/question/77014496.html?an=0&si=1
Ⅶ 跪求 PHP+Mysql實現購物車功能
PHP+Mysql實現購物車功能1.伺服器端編程語言是需要購物車代碼的,沒有伺服器代碼闡述!
Ⅷ 如何把SQLServer的存儲過程改成MYSQL的存儲過程
這個實現得追查一下才抄能解決。實際mysql的存儲過程想在sqlserver裡面運行本身還是需要處理一下的。OPENQUERY(pidb,'callapi_pidb_real(20100)')函數和函數體內部調用別的函數或者存儲過程。都需要進一步確認並且在資料庫中創建和執行才能確保你現在這句話能通
Ⅸ 求PHP+Mysql購物車的代碼和相應建立的資料庫。我是用XAMPP做的,做了半天沒做好。哪位大俠能救助在下
PHP+Mysql購物車的代碼,資料庫在secure
Ⅹ jsp+mysql購物車示例
通過這個方抄法request.getsession().setAttribute("cart",購物車的數據);放入,然後需要提取的時候就通過request.getsession().getAttribute("cart");得到數據,然後在往資料庫裡面插就好了。