Jump to content

Unexpected T_STRING Error


BNole

Recommended Posts

I'm getting the following error:Parse error: syntax error, unexpected T_STRING in /home/firecoac/public_html/fanthefire/indexTEST.php on line 73Now, here are lines 72-74. I don't see any problems. Help?

$num_pages = ceil(($num_rows + 2) / 8);echo 'Page 1 of ';echo $num_pages;

Link to comment
Share on other sites

Those lines are fine, you must have an unclosed quotation or something in the previous lines of code e.g.

echo 'Blah blah blah; //Missing ' causes all following text to be included in the string$num_pages = ceil(($num_rows + 2) / 8);echo 'Page 1 of '; //The first ' causes string to end, then P becomes an invalid stringecho $num_pages;

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...