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
matth2004
Forum Commoner
Posts: 40 Joined: Wed Sep 06, 2006 3:26 am
Post
by matth2004 » Tue Dec 12, 2006 10:27 pm
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.
Burrito
Spockulator
Posts: 4715 Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah
Post
by Burrito » Tue Dec 12, 2006 10:38 pm
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 » Tue Dec 12, 2006 10:42 pm
Oops, Ok removed. Hopefully noone deletes my stuff.....
Anyone have an answer?
Regards,
Matt
neel_basu
Forum Contributor
Posts: 454 Joined: Wed Dec 06, 2006 9:33 am
Location: Picnic Garden, Kolkata, India
Post
by neel_basu » Tue Dec 12, 2006 10:57 pm
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 » Tue Dec 12, 2006 11:22 pm
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
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Tue Dec 12, 2006 11:26 pm
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 » Tue Dec 12, 2006 11:27 pm
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 » Tue Dec 12, 2006 11:30 pm
Solved. Missing the closing brace for my if statement
Thanks heaps for your help,
Regards,
Matt