.../home/aca09aag/public_html/beta/final/admin.php on line 20? Line 20 is below. Although it prints "Entry Deleted". It shows an error. How to fix.
if($_SESSION['cart'][$product_id] == 0) unset($_SESSION['cart'][$product_id]);
prints:
Array
(
[0] =>
[1] => Resource id #7
[2] => Resource id #5
[3] => Resource id #8
)
my code is:
case "viewcart":
$view = listCartObjects();
foreach($view as $item)
print_r(mysql_fetch_array($item));
break;