Page 1 of 1

shopping basket

Posted: Wed Sep 03, 2008 4:36 am
by pagegen
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

Re: shopping basket

Posted: Wed Sep 03, 2008 4:50 am
by acid coder
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