Link to home
Start Free TrialLog in
Avatar of Melody Scott
Melody ScottFlag for United States of America

asked on

unexpected $end

Hello, experts, I have a php error: I am getting this message on my test cart:
Parse error: syntax error, unexpected $end  on line 154. Here are lines 131 through the end. Line 154 is:
<link rel="stylesheet" href="includes/style.css" type="text/css">. Do you see any glaring errors? Thanks, I am pretty new to this.

lines 131 through the end:
      // Display normal content.
            include ($_GET['ap'].'.php');
      } else {
            // Display the category select/cart intro page.
            $content .= '<br><br><p class="head">Please select a product category(Please note, minimum order is $10.00):</p>
            <p align="center"><a href="index.php?cat=1"><img src="images/head-multipurpose.gif" border="0"></a>
            <p align="center"><a href="index.php?cat=2"><img src="images/head-coldwater.gif" border="0"></a>
            <p align="center"><a href="index.php?cat=3"><img src="images/head-chemicals.gif" border="0"></a>
            <p align="center"><a href="index.php?cat=4"><img src="images/head-wash.gif" border="0"></a>';
      }

$content .= '
                                                </td>
                                          </tr>
                                    </table>
                              </td>
                        </tr>
                  </table>';
                                                                        

echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" href="includes/style.css" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Dye Pro Distributors Inc.</title>
</head>

<body>'.$content.'</body>
</html>';
ASKER CERTIFIED SOLUTION
Avatar of gamebits
gamebits
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Melody Scott

ASKER

ok thanks!
yeah Gamebits is right, this error is usually as a result of a missing curly bracket but it could help if you post the complete code?
Thanks! I just started from scratch, I'm using existing code and adding a category, but once I do that if I am still getting the error I'll post the full code. Thanks!!
sure =)
Ok, I am sure more problems will crop up and I'll be back, but you steered me in the right direction, thanks!
Thanks for the points and the grade.

Gamebits