Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home3/nyhungry/public_html/example2.php on line 308
I would like to know what could be the reasons why this error could be displaying?
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home3/nyhungry/public_html/example2.php on line 308
I would like to know what could be the reasons why this error could be displaying?
it could be a missing ; or mismatch quotes.
What is on line 308?
Now it is on line 304 cause I have edited some somethings
elseif (($prod != '') && ($cat == 4)) {
echo'<div id="caterpic2">'; // line 304
$query3 = "SELECT caridadcaterin.id, caridadcaterin.name, caridadcaterin.image, caridadcaterin.price, caridadcaterin.moreinfo, caridadcaterin.appetizers_id
FROM caridadcaterin
WHERE
appetizers_id= " . (int) $_GET['menu'];
$result = mysql_query($query3, $connection);
while ($row4 = mysql_fetch_array($result)) {
Never mind i found it it was a '; that was throwing off the code on line 301
Thank you for your suggestions
```php
echo'</div>';
echo'</div>'; //end of outer div.
'; // 301
}
elseif (($prod != '') && ($cat == 4)) {
echo'<div id="caterpic2">'; // line 304
$query3 = "SELECT caridadcaterin.id, caridadcaterin.name, caridadcaterin.image, caridadcaterin.price, caridadcaterin.moreinfo, caridadcaterin.appetizers_id
FROM caridadcaterin
WHERE
appetizers_id= " . (int) $_GET['menu'];
$result = mysql_query($query3, $connection);
while ($row4 = mysql_fetch_array($result)) {