shopping basket

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
pagegen
Forum Commoner
Posts: 32
Joined: Sat May 31, 2008 6:38 am

shopping basket

Post 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
acid coder
Forum Newbie
Posts: 7
Joined: Fri Aug 15, 2008 6:59 am

Re: shopping basket

Post 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
Post Reply