多个表的购物车 [英] Shopping cart for multiple tables
本文介绍了多个表的购物车的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
基本上我正在为我的网站创建一个购物车,但是为一个项目表创建一个购物车很容易,但有人可以指导我如何创建一个可以处理多个项目表的购物车。我真的需要你的帮助
谢谢
ashraf
解决方案
进一步阐述我的问题我试图执行下面的代码有两个单独的项目表。 1,衬衫2,裤子和我正在尝试整合它,以便当顾客选择项目时它会出现在购物篮上,即使有单独的桌子。希望这是有道理的。
代码:
[PHP]<?php
session_start();
conn = mysql_connect(" localhost"," root","")
或die(mysql_error());
mysql_select_db(" noble",
conn)或死(mysql_error());
if(
basicaly i am creating a shopping cart for my website however creating a shopping cart for one table of items is easy but can someone direct me on how to create a shopping cart that can handle more than one table of items. i really need ur help on this
thanks
ashraf
解决方案
to elaborate further on my problem i am trying to execute the code below there are two seperate item tables. 1, shirts 2, trousers and i am trying to integrate it so that when customers select the item it would appear on the shopping basket even though there arein seperate tables. hope this makes sense.
Code:
[PHP]<?php
session_start();
conn = mysql_connect("localhost", "root", "")
or die (mysql_error());
mysql_select_db ("noble",
conn) or die (mysql_error());
if (
这篇关于多个表的购物车的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文