Common Problem for a Beginner - Shopping Cart

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
LDusan
Forum Commoner
Posts: 45
Joined: Sun Mar 08, 2009 5:03 am
Location: Belgrade, Serbia

Common Problem for a Beginner - Shopping Cart

Post 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.
user333
Forum Newbie
Posts: 8
Joined: Tue Mar 03, 2009 12:02 pm

Re: Common Problem for a Beginner - Shopping Cart

Post 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.
LDusan
Forum Commoner
Posts: 45
Joined: Sun Mar 08, 2009 5:03 am
Location: Belgrade, Serbia

Re: Common Problem for a Beginner - Shopping Cart

Post by LDusan »

Thanks, I've managed to do it by now.
Post Reply