Page 1 of 1

Error message...

Posted: Fri Apr 09, 2004 8:06 am
by joetheeskimo5
I have pretty much no knowledge with errors in my PHP code, so for one, could someone please reccomend a site that has a clean list of error messages and how to troubleshoot them? Secondly, could someone help me with this parse error I just got?

Parse error: parse error, unexpected T_IF in c:\program files\apache group\apache\htdocs\viewcomics.php on line 15

Line 15 of my code seems to be fine (this is from a script to view comics as a slideshow):

Code: Select all

If (($comicshowing == "http://www.wormwars.com/comic/1-1.jpg") || ($comicshowing == "http://www.wormwars.com/comic/1-2.jpg")) {
Please help!

Thanks,
Joe

Posted: Fri Apr 09, 2004 8:09 am
by markl999
unexpected T_IF is basically saying the 'if' was unexpected which suggests the problem is on the line before the one you posted. Make sure the previous line has a ; on the end.

Not sure where there's a 'nice' list of the errors.

Posted: Fri Apr 09, 2004 8:10 am
by feyd
the error is prior to that line.

Posted: Fri Apr 09, 2004 9:32 am
by joetheeskimo5
Haha, thanks! You were right, it was a missing a semicolon on the previous line! Thanks for helping out a clueless moron. ;)

Joe