Phillip Perry writes: 

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


 echo "$catalog[unitprice];" 

If that doesn't work, then check your if statement - what is the value of 
$value and $catalog[itemcd]? 

Mark Gallagher 

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to