Hey guys, whats the best way to make a shopping basket?
is it add all the items that the user wants in a database with their session Id?
or add every item to a session?
i can do the database way no problem but if a user adds stuff to the basked and then goes of the site, the data will not delete but if the items are in their session then they will clear automatic..
plz tell me best way and how to add multiple items to a session
Thank you
shopping basket
Moderator: General Moderators
-
acid coder
- Forum Newbie
- Posts: 7
- Joined: Fri Aug 15, 2008 6:59 am
Re: shopping basket
Which way is up to you. $_SESSION is used as an array. I think it's best you start by reading the basics on php.net -> http://uk3.php.net/manual/en/index.php