MRSN
T20I Star
- Joined
- Oct 20, 2010
- Runs
- 30,597
friends who have good skills with PHP help get through this problem..
so I have an item collections, user adds them to his cart like this:
User: XYZ
productname: price: company
... .... ...
===================
total:
I use database to process the cart system, I have a table where all the users selections are stored,the cart just fetches that collections through php. Problem I have is how to clear the cart? suppose the user have made just doesn't order and he closes the window ,those selections would still appear since they were added to the table and I'm just using PHP to fetch it.
Also I'm not sure if I am processing the cart right way?i.e through database the specific table I have created which stores the collections...what if there are multiple people making the purchases at the same time..wouldn't this become messy?
hopefully someone could help me out..
so I have an item collections, user adds them to his cart like this:
User: XYZ
productname: price: company
... .... ...
===================
total:
I use database to process the cart system, I have a table where all the users selections are stored,the cart just fetches that collections through php. Problem I have is how to clear the cart? suppose the user have made just doesn't order and he closes the window ,those selections would still appear since they were added to the table and I'm just using PHP to fetch it.
Also I'm not sure if I am processing the cart right way?i.e through database the specific table I have created which stores the collections...what if there are multiple people making the purchases at the same time..wouldn't this become messy?
hopefully someone could help me out..
Last edited: