Greetings all, Ok, I've made some progress with my shopping cart.  I can now
update the quantity of one item only.  When I try to update the quantities
of 2 products it only lists the first product with its previous quantity.  I
also need to press the "update quantity" button twice for the quantity to be
changed.

How can I update quantities of more than one product and why do I have to
press the "update quantity" button twice?

Here's the product catalogue:

http://www.hostmaster-x.co.uk/DisplayProducts.php?TypesOfInterests=11


The values are passed to the URL and the code I'm using to update quantities
is as follows:

foreach($shoppingcart['products'] as $buy => $quantity)

{

if ($_GET['buy'] == $buy)

{


$shoppingcart['products'][$buy] = $_GET['quantity'];


}



Any ideas ppl?

Cheers,

Graeme :)


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to