Jump to content
Larry Ullman's Book Forums

Ch5 Cart.Php Fatal Error


Recommended Posts

Hello,

 

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-5.3.8.1\www\\Ch05\cart.php on line 127

 

The line is:

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

What is the problem?

 

Thanks

 

 

Link to comment
Share on other sites

 Share

×
×
  • Create New...