How Fix Error Parse Error: Parse Error, Unexpected '}' In PHP Script Code

Mobile
feeds
Welcome Login | Register

How Fix Error Parse Error: Parse Error, Unexpected '}' In PHP Script Code
  Forums Index
      » MYSQL Forums
        » » How Fix Error Parse error: parse error, unexpected '}' in PHP Script Code



How Fix Error Parse Error: Parse Error, Unexpected '}' In PHP Script Code
Post Description:
Post Tags: how, fix, error, parse, error, parse, error, unexpected, in, php, script, code, mysql database, support, help, answers, questions, help
This Post Has Been Viewed 1227 Times Since Fri Dec 22, 2006 7:49 pm Posted By webmaster with 2 replies
How Fix Error Parse Error: Parse Error, Unexpected '}' In PHP Script Code

     Code:
Parse error: parse error, unexpected '}' in C:\forums\myfile.php on line 23


i was getting this error, i found out how to fix it, it turned out i was missing a } at the end of the function, so to fix it, all i had to do was to insert the } at the and of the fucntion. that's it.


Leave Your Comments






Share
URL:
You can use this HTML code to put it on your website to show your friends this wallpaper. Use this code on your profile like myspace, friendster, Facebook or others. Just Copy and Paste it in your HTML on your websites



Fourms BBCODE:
BBCODE is use on forums. You can put this code on all your BBCODE enabled forums like PhpBB, vBulletin® and others. Just Copy and Paste this code on your Posts and Replies on your forums





Comments and replies About How Fix Error Parse Error: Parse Error, Unexpected '}' In PHP Script Code




:: 1 :: Reply #43045 Reply By hostman On Mon Feb 25, 2008 11:20 am
you are probably missing the ; at the end
:: 2 :: Reply #43535 Reply By tony On Thu Feb 28, 2008 6:26 pm
i usually get this errror when i miss something

for example the other day i had this:

if($strlen($tring) > 45) {

well as you can see, i need to add another ) in my code, so that's why i was getting this errorl