Forum Moderators: coopster
The following is the error message i am getting:
Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /home/qhesiruh/public_html/shoppingcart/cart.php on line 79
Here is my source code:
<snipped code dump, please see Posting Guidelines [webmasterworld.com]>
[edited by: coopster at 10:58 pm (utc) on Nov. 28, 2005]
[edit reason] Removed unnecessary code [/edit]
If line 79 is the first call to $cart; then it could conceivably generate an error if the cart class hasn't ben created.
(By the way, what exactly does the & in front of new do? I'e seen it before but never with any indication of what it does.)
You have your quotation marks mismatched on line 73. Change that last single quotation mark to a double quotation mark:
"<a href = \"cart.php\">No</a></center>";
Steerpike, that is called a reference [php.net].