beginner in PHP
| From: | Phillip Perry | Date: | Thu, 13 Jun 2002 02:56:05 +0000 |
| Subject: | beginner in PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-101862@lists.php.net to get a copy of this message | ||
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