Melody Scott
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"><im g src="images/head-multipurp ose.gif" border="0"></a>
<p align="center"><a href="index.php?cat=2"><im g src="images/head-coldwater .gif" border="0"></a>
<p align="center"><a href="index.php?cat=3"><im g src="images/head-chemicals .gif" border="0"></a>
<p align="center"><a href="index.php?cat=4"><im g 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>';
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"><im
<p align="center"><a href="index.php?cat=2"><im
<p align="center"><a href="index.php?cat=3"><im
<p align="center"><a href="index.php?cat=4"><im
}
$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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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?
ASKER
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 =)
ASKER
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
Gamebits
ASKER