Re: Find values in an array question

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

 



Jeff, thanks for your reply.  If you go to
http://www.hostmaster-x.co.uk/DisplayProducts.php?TypesOfInterests=11 you
will see that when you click the "Buy" link the quantity is passed to the
shopping cart.

Cheers,

Graeme :)

----- Original Message -----
From: <jeffrey_n_Dyke@Keane.com>
To: "Boa Constructor" <mickel@ntlworld.com>
Cc: <php-db@lists.php.net>
Sent: Thursday, May 15, 2003 10:09 PM
Subject: Re:  Find values in an array question


>
> this may be a dumb question. but where is $quanity getting set in the
first
> place?  you're checking that it does not equal 1, but it does not look
like
> its being set.
>
> that may not be the problem, but i'm stuck on that question....
>
> jeff
>
>
>
>                     "Boa
>                     Constructor"         To:     <php-db@lists.php.net>
>                     <mickel@ntlwor       cc:
>                     ld.com>              Subject:      Find values
in an array question
>
>                     05/15/2003
>                     04:50 PM
>
>
>
>
>
>
> 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
>
>
>
>


-- 
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