Page 1 of 1

Common Problem for a Beginner - Shopping Cart

Posted: Sun Mar 08, 2009 5:10 am
by LDusan
Hi all. I am having some problems with this code, any kind of help is greatly appreciated.

It's a shopping cart.

I have one page that is passing products ID through URL to the second page, which then displays the appropriate item from database. The problem is that I want to store multiple products on that second page and display them all. I know this is done with sessions and loop I just can't figure it out. If anybody has any idea I would be very grateful.

Re: Common Problem for a Beginner - Shopping Cart

Posted: Sun Mar 08, 2009 6:46 am
by user333
There are plenty of sources on the Internet on that. This one would help you at a basic level:
http://v3.thewatchmakerproject.com/jour ... pping-cart
You should get a book on Php and there will be hardly no chance not to have such a chapter dedicated on Sessions and even examples with shopping carts.

Re: Common Problem for a Beginner - Shopping Cart

Posted: Sun Mar 08, 2009 12:33 pm
by LDusan
Thanks, I've managed to do it by now.