Re: beginner in PHP

From: Date: Thu, 13 Jun 2002 03:32:01 +0000
Subject: Re: beginner in PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-101873@lists.php.net to get a copy of this message
Hi itemcd and unitprice should be in quotes I think if they are keys in an array. $catalog["itemcd"] $catalog["unitprice"] Tom At 10:56 PM 12/06/2002 -0400, Phillip Perry wrote:
Can someone tell me why this doesn't work? The $mycart array is fine and the $catalog array is also fine but nothing inside the if statement prints. I've tried other echo statements but nothing prints at all. while (list($key,$value) = each($mycart))
        {
        if ($value == $catalog[itemcd])
                {
                        echo $catalog[unitprice];
                }
        }
Thanks Phil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.general (#101873) next »