faqts : Computers : Programming : Languages : PHP : Common Problems : Errors

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

18 of 32 people (56%) answered Yes
Recently 5 of 10 people (50%) answered Yes

Entry

Does anyone know why I would get "parse error : unexpected T_IF in..."?

Feb 17th, 2004 12:11
Robert Boyer, Andrew Hickton,


Whenever I get this error, it's because the line of code just above the 
IF statement in question has a syntax error.

Hope that helps!