...

View Full Version : Can't figure out this parse error



cyphix
05-30-2004, 11:54 PM
This is the last few lines of my file.... it is reporting the parse error on the last line..



echo "</tr>\n\n";
echo "</table>";

}

?>


</body>
</html>


:confused:

gsnedders
05-30-2004, 11:56 PM
It's the space before the first echo there.

missing-score
05-31-2004, 12:05 AM
umm... no its not...

Check the line before that and make sure you have a semicolon on the end of it, If you do, post up the error message you are getting and some more of your code so we can have a better look.

gsnedders
05-31-2004, 12:12 AM
umm... no its not....

I've had problems like that which were fixed like that, but, any how, post your whole code and the error message as missing-score said.

missing-score
05-31-2004, 01:48 AM
are you sure? i doubt it very much, becuase if thats the case then surely newlines and tabs would cause just as much of a problem... You probably changed something else to fix the problem.

Spookster
05-31-2004, 02:39 AM
That space is most definitely not the problem. Parsers do not care about spaces like that.

More than likely the problem is somewhere else. Parsers often indicate the location of an error and not actually where the typo in the code was made.

firepages
05-31-2004, 03:30 AM
99/100 a parse eror reported on the last line of a file means a missing '}' in an if/else while() etc , e.g. PHP is still looking for the closing brace when it finds the EOF

cyphix
05-31-2004, 11:28 AM
99/100 a parse eror reported on the last line of a file means a missing '}' in an if/else while() etc , e.g. PHP is still looking for the closing brace when it finds the EOF

lol yep... was a missing "}" I forgot to add halfway up the file. :o



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum