Page 1 of 1

SOLVED - A PHP Parse error - I don't know answer :(

Posted: Tue Dec 12, 2006 10:27 pm
by matth2004
Hi all,

I'm getting a weird parse error on my php script. It says Parse error: parse error, unexpected $ in /home/content/m/a/t/matth2004/html/videos.php on line 689

Line 689 is the last line of the file. The URL is http://www.justmatty.com/videos.php and the source can be found at http://www.justmatty.com/videos.phps

Any help would be much appreciated.

Regards,
Matt

Posted: Tue Dec 12, 2006 10:38 pm
by Burrito
you may want to remove your username and password for the db on the source code.

Posted: Tue Dec 12, 2006 10:42 pm
by matth2004
Oops, Ok removed. Hopefully noone deletes my stuff.....

Anyone have an answer?

Regards,
Matt

Posted: Tue Dec 12, 2006 10:57 pm
by neel_basu
But Amazing There is No 689 Lines In Your Code

Posted: Tue Dec 12, 2006 11:22 pm
by matth2004
There was 689, there might be a few less in the source seeing as i removed 4 lines containing my database server user/host/pass info

Posted: Tue Dec 12, 2006 11:26 pm
by feyd
The error suggests a high probability that you have a missing closing brace or more in some location.

Posted: Tue Dec 12, 2006 11:27 pm
by matth2004
Ok I'll recheck the code and get back to you.

Posted: Tue Dec 12, 2006 11:30 pm
by matth2004
Solved. Missing the closing brace for my if statement :P

Thanks heaps for your help,
Regards,
Matt