Shopping Cart Newbie problem

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
CaptainChainsaw
Forum Newbie
Posts: 2
Joined: Thu May 22, 2003 5:00 am

Shopping Cart Newbie problem

Post by CaptainChainsaw »

Hey all, I've been using php for my first php project, it was going ok till I got to coding the shopping cart.

Specifically the quantities doesn't quite work, although I made some progress with it. When I add an item to the cart a quantity of 1 is passed to it along with the product ID, this works fine. Although when you want to change the quantity and you change it to 3 and press return it works, press the button to submit the form and it multiplies the product ID by the value of the product. Adding more than one item also creates similar problems.

Basically it doesn't look like I've grasped arrays and sessions here.

THe code for the viewing the cart is here: http://www.hostmaster-x.co.uk/shoppingc ... roblem.txt

If anyone can help me with this I'd really appreciate it - I'm pretty lost here :(


Cheers,

Graeme :)
CaptainChainsaw
Forum Newbie
Posts: 2
Joined: Thu May 22, 2003 5:00 am

Post by CaptainChainsaw »

I forgot to say if you want to have a look at the cart with the problems outlined go to http://www.hostmaster-x.co.uk/Products.php

Cheers,

Graeme :)
Post Reply