Jump to content
Larry Ullman's Book Forums

Ch5 Cart.Php Fatal Error

Recommended Posts



I get the following error after clicking on the add to cart link in ch5:


Fatal error: Unsupported operand types in C:\Program Files (x86)\EasyPHP-\www\\Ch05\cart.php on line 127


The line is:

$subtotal = $_SESSION['cart'][$row['sw_id']] * $price;

What is the problem?





Link to comment
Share on other sites


  • Create New...