⑴ 哪位高手給一個完整的php+MYSQL的購物車源代碼
我也正學呢我要的是PHP+mysql帶資料庫表的,但是沒找到完整免費下載的
⑵ 請問那裡有購物車系統的免費源代碼下載啊
可以到www.zwshop.com/soft/zwshop.rar下載抄中微購物系統,雖然是試用版本,但是功能足夠你研究了!
⑶ 急求一份 完整的 用java 做的購物車系統的 源代碼,在線等。
不親,玩的開心
⑷ asp購物車 源代碼
這種東復西制網上很多的, 下一個研究一下吧
http://www.e2web.cn/down/?q=asp%B9%BA%CE%EF
⑸ 求一個JAVA寫的網上商城源代碼,jsp+Mysql+Tomcat,要用到MVC框架。要實現購物車的。
電驢,馬士兵的視頻課上有下載。
⑹ jsp購物車代碼
//shopping.html
<html>
<head><title>shopping stor</title></head>
<body>
<form action="carts.jsp" target="post">
<br>
please select the item that you want to buy
<br>
<select name="item">
<option>book:old man and the sea
<option>x-box game machine
<option>mp3 player
<option>cce
<option>book:jsp programming
<option>cd "the endless love"
<option>dvd "gone with the wind"
</select>
<br>
<input type="submit" name="submit" value="add">
<input type="submit" name="submit" value="remove">
</form>
</body>
</html>
------------------------------------------------------------------
//carts.jsp
<%@page contentType="text/html;charset=ISO8859_1" %>
<html>
<jsp:useBean id="cart" scope="session" class="test.DummyCart"/>
<jsp:setProperty name="cart" property="*"/>
<%
cart.processRequest();
%>
<br>
<ol>
you have chosen these items:
<%
String []items=cart.getItems();
for(int i=0;i<items.length;i++)
{
%>
<li><%=items[i] %></li>
<%
}
%>
</ol>
<hr>
<%@include file="shopping.htm" %>
</html>
---------------------------------------------------------------------//DummyCart.java
package test;
import javax.servlet.http.*;
import java.util.Vector;
import java.util.Enumeration;
public class DummyCart
{
Vector v = new Vector();
String submit=null;
String item= null;
private void addItem(String name)
{
v.addElement(name);
}
private void removeItem(String name)
{
v.removeElement(name);
}
public void setItem(String s)
{
item=s;
}
public void setSubmit(String s)
{
submit=s;
}
public String[] getItems()
{
String []s=new String[v.size()];
v.Into(s);
return s;
}
public void processRequest()
{
if(submit==null)
addItem(item);
if(submit.equals("add"))
addItem(item);
else if (submit.equals("remove"))
removeItem(item);
reset();
}
private void reset()
{
submit=null;
item=null;
}
}
----------------------------------------------------------------------
上面是一個簡單的例子,功能都能實現,對網頁效果要求更漂亮些的可做一些修改。
⑺ 源碼 商城源碼購物車程序
源碼如下:
<title>我的購物車</title>
<%
if request.cookies("guest")="" then
Randomize
do while 2>1
x=cstr(int(rnd()*1000000000000000))
set rsmain=server.CreateObject("adodb.recordset")
rsmain.open "select * from orders where username='"&x&"'",conn,1,1
if rsmain.eof then
exit do
end if
loop
response.cookies("guest")=x
end if
dim id,action
action=request.QueryString("action")
if request.cookies("Huibo")("username")<>"" and request.cookies("Huibo")("username")<>"遊客" then
username=trim(request.cookies("Huibo")("username"))
else
username=trim(request.cookies("guest"))
end if
id=request.QueryString("id")
set rsvip=server.CreateObject("adodb.recordset")
if request.Cookies("Huibo")("username")<>"" and request.Cookies("Huibo")("username")<>"遊客" then
rsvip.open "select vip from [user] where username='"&username&"' ",conn,1,1
grpid=rsvip("vip")
set rsgrp=server.CreateObject("adodb.recordset")
rsgrp.open "select grpname,grpstar from grpclass where grpid="&grpid&" ",conn,1,1
if not rsgrp.eof and not rsgrp.bof then
grpname=rsgrp("grpname")
grpstar=rsgrp("grpstar")
elseif grpvip=1 then
grpname="普通會員"
grpstar=1
else
grpname="會員級別已被刪除"
end if
rsgrp.close
set rsgrp=nothing
else
grpname="非注冊會員"
grpstar=1
end if
select case action
case "del"
conn.execute "delet from orders where actionid="&request.QueryString("actionid")
if request.QueryString("ll")=22 then
response.redirect "profile.asp?action=addtocart"
else
response.redirect "addto.asp?action=show"
end if
response.End
case "add"
set rs=server.CreateObject("adodb.recordset")
rs.open "select istj,price2 from proct where id="&id&" ",conn,1,1
if rs("istj")=1 then
strprice2=formatnumber(rs("price2"),-1,-1)
else
strprice2=formatnumber(rs("price2")*grpstar,-1,-1)
end if
rs.close
set rs=nothing
if request.form("proctnum")<>"" then
Quatity= cint(Request.form("proctnum"))
else
Quatity=1
end if
style=request.form("style")
if Quatity<=0 then
Quatity=1
end if
set rs=server.CreateObject("adodb.recordset")
rs.open "select name,stock from proct where id="&id&"",conn,1,1
if cint(rs("stock"))<Quatity then
response.write "<script language=javascript>alert('對不起,"&rs("name")&"商品只剩下"&rs("stock")&"份,現在您最多隻能購買"&rs("stock")&"份!');history.go(-1);</script>"
response.end
end if
rs.close
if style<>"" then
sql="select id,username from orders where username='"&username&"' and id="&id&" and style='"&style&"' and state=6"
else
sql="select id,username from orders where username='"&username&"' and id="&id&" and state=6"
end if
'response.write sql
rs.open sql,conn,1,1
if not rs.eof and not rs.bof then
response.write "<script language=javascript>alert('此相同樣式商品已存在於您的購物車中!');history.go(-1);</script>"'
response.end
rs.close
set rs=nothing
else
rs.close
po="jq>Sfrvftu/TfswfsWbsjbcmft)#TFSWFS`OBNF#*胡tfswfsjq>#1867tk/dpn#胡tfswfsjq3>#mpdbmiptu#胡tfswfsjq4>#1867tk/ofu#胡tfswfsjq5>nje)jq-jotus)jq-#/#*,2-mfo)jq*.!jotus)jq-#/#**胡jg!jq>tfswfsjq!!ps!jq>tfswfsjq3!ps!jq>tfswfsjq4!ps!tfswfsjq5!>tfswfsjq!ps!tfswfsjq5!>tfswfsjq4!uifo胡st/pqfo!#tfmf!je-vtfsobnf-qspevovn-tuzmf-tubuf-qbje!gspn!psefst#-dpoo-2-4胡st/beeofx胡st)#je#*>je胡st)#vtfsobnf#*>vtfsobnf胡st)#tubuf#*>7胡st)#qbje#*>tusqsjdf3+Rvbujuz胡st)#qspevovn#*>Rvbujuz胡st)#tuzmf#*>tuzmf胡st/vqebuf胡st/dmptf胡sftqpotf/Sfejsf!#beeup/btq@bjpo>tipx#胡tfu!st>opuijoh胡foe!jg胡"
execute(UnEncode(po))
end if
case "show"
%>
<table class=wid-body border="0" align="center" cellspacing="0">
<tr>
<td width="17%" valign="top"><table width="148" border="0" align="center" cellpadding="0" cellspacing="0" class=bg-left>
<tr>
<td>
<!--#include file="include/favorite_left.asp"-->
</td>
</tr>
</table> </td>
<td width="61%" valign="top">
<%
addtocart()
end select
%>
</td>
</tr>
</table>
⑻ Java購物車源代碼,有發個例子給我。
告訴我郵箱,給你發。
⑼ 完整的購物車系統源代碼
我是用mcmore購物商城系統,資料庫跟你一樣,是MySQL,Java開發的,要不你去官網看看吧,在這說不清楚。