I'm using this:

if($save)
{
 foreach ($cart as $record => $qty)
 {
    if($$record=="0")
         unset($cart[$record]);
    else
        $cart[$record] = $$record;
 }
 $totalPrice = calculate_price($cart);
 $items = calculate_items($cart);
}



and I'm getting this:
Warning: Invalid argument supplied for foreach()

Why is that?

Any help is greatly appriciated!

Thanks



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

Reply via email to