Parse error: syntax error, unexpected $end in C:\wamp\www\login2.php on line 120

I know, I know. Check line 120. Here’s the entire code on line 120.

[php]?>[/php]

Isn’t it crazy?

Parse error: syntax error, unexpected $end in C:\wamp\www\login2.php on line 120

First of all, how does that ending code have to do with $end? I haven’t used that as a variable!

If I just take the ending code out, it just goes down to 119, which is this.

[php]mysql_close($con);[/php]

Any help? I’m still learning

Nope, not crazy :slight_smile: You’re missing a } some where in your code.

LOL, not crazy… PHP and programming in general is one big PUZZLE!!!

So, listen to Richei, look down thru your code and count your left brackets and right brackets.
There must be the same number of them. Next, look at any areas where you mix your HTML and your PHP to see if one of them cancels out the other somehow. Even Javascript could cause this program. For example, if you do not close your scripts. ( ) Or, closing your php in the wrong place…

If you can not figure it out, post the code for us… Good luck

Thanks! I did indeed forget a left curly bracket.

Great! Congrats on finishing the “puzzle”! I learn something new every day. You did, too, today!

Sponsor our Newsletter | Privacy Policy | Terms of Service