|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Building a Persistent Shopping Cart
Hi,
I have this table create table cart ( cartId int auto_increment not null, cookieId varchar(50), itemId int, qty int, primary key(cartId), unique id(cartId) ); I executed this line @mysql_query("insert into cart(cookieId, itemId, qty) values('" . GetCartId() . "', $itemId, $qty)"); My table cart contains 4 fields cartId,cookieId,itemId, qty, but the insert SQL is putting in 3 fields only. wHen i check my table there isn't any records written to it.Is there any problem with my table? Please help lad/lass out there.. |
|
#2
|
||||
|
||||
|
Hmmm, this should work. Just for kicks, try changing your query to the following:
PHP Code:
__________________
Please don't PM me asking for solutions outside the scope of a thread. Keeping all responses in a thread stands to help others who come along later, which is after all what this forum's all about. |
![]() |
| Viewing: Dev Articles Community Forums > Databases > MySQL Development > Building a Persistent Shopping Cart |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|