Find values in an array question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hey all, I'm pretty lost with this and I just can't see what I'm doing
wrong.  It looks like I'm getting the values in to the array correctly but I
just can't seem to read them back.  I've tried variations of the code below
but I can't seem to get it working.   If you go to
http://www.hostmaster-x.co.uk/DisplayProducts.php?TypesOfInterests=11 and
add a product to the cart and then change the quantity you will see the
correct quantity is passed to the array as it appears in the address bar,
this is also the case for more than one product.  I just can't seem to read
them back :'(

Cheers for anything,

Graeme :)

for($b=0;$b<count($shoppingcartQuantity);$b++)

{

if($quantity!=1)

{

//$quantity = $shoppingcartQuantity[$b];

$quantity = array_values($shoppingcartQuantity);

//echo "Quantity = $quantity";

//$quantity = $shoppingcartQuantity;

//foreach($quantity AS $b)

//{

//echo "$b<br>";

//}

print_r($quantity);


}

}


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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux