• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 530
  • Last Modified:

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>';
0
mel200
Asked:
mel200
  • 3
  • 2
  • 2
1 Solution
 
gamebitsCommented:
"unexpected $end" the error could be anywhere in your script, i's usually a missing curly }
0
 
mel200Author Commented:
ok thanks!
0
 
Aamir SaeedCommented:
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?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
mel200Author Commented:
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!!
0
 
Aamir SaeedCommented:
sure =)
0
 
mel200Author Commented:
Ok, I am sure more problems will crop up and I'll be back, but you steered me in the right direction, thanks!
0
 
gamebitsCommented:
Thanks for the points and the grade.

Gamebits
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now