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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
matth2004
Forum Commoner
Posts: 40
Joined: Wed Sep 06, 2006 3:26 am

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

Post 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
Last edited by matth2004 on Tue Dec 12, 2006 11:30 pm, edited 1 time in total.
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

you may want to remove your username and password for the db on the source code.
matth2004
Forum Commoner
Posts: 40
Joined: Wed Sep 06, 2006 3:26 am

Post by matth2004 »

Oops, Ok removed. Hopefully noone deletes my stuff.....

Anyone have an answer?

Regards,
Matt
User avatar
neel_basu
Forum Contributor
Posts: 454
Joined: Wed Dec 06, 2006 9:33 am
Location: Picnic Garden, Kolkata, India

Post by neel_basu »

But Amazing There is No 689 Lines In Your Code
matth2004
Forum Commoner
Posts: 40
Joined: Wed Sep 06, 2006 3:26 am

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

The error suggests a high probability that you have a missing closing brace or more in some location.
matth2004
Forum Commoner
Posts: 40
Joined: Wed Sep 06, 2006 3:26 am

Post by matth2004 »

Ok I'll recheck the code and get back to you.
matth2004
Forum Commoner
Posts: 40
Joined: Wed Sep 06, 2006 3:26 am

Post by matth2004 »

Solved. Missing the closing brace for my if statement :P

Thanks heaps for your help,
Regards,
Matt
Post Reply