Hi,
I am trying to write some sort of a shopping cart (minus the payment part; at the end just email the requested items to someone.)
Is there a tutorial/utility/code on how to achieve this?
I have started doing this but need some guidance as to how to keep track of carts.
I have made two tables: a "products" table and a "cart" table.
Products table has prodID, ProdName and Price.
Cart table has ProdID, Qty and CartID.
Everytime an item is to be added, I insert a row into cart table but don't know how to setup the cartID so the wrong cart doesn't get modified.
Someone suggested using sessions but being green in PHP it will probably take me quite a while to get a handle of it and use it effectively, and properly.
Any help is greatly appreciated.