Faqts : Computers : Programming : Languages : PHP : Common Problems

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

1 of 4 people (25%) answered Yes
Recently 1 of 4 people (25%) answered Yes

Entry

I get a parse error saying there's an unexpected $ on line xxx. But there isn't a $ there. Help?

Aug 23rd, 2004 00:57
Ayse Geertsma, Phillip Hayward,


You should add the complete code. One hint: Is there a ; at the end of
your line xxx. If not (or if enclosed in like " or ') add it at the end
of your line. Vague errors are usually a result of forgetting ; " ' ( )
and so on. There are loads of editors that will color-code your code and
help you in resolving these problems.