nathanmaxsonadil Posted August 20, 2007 Share Posted August 20, 2007 I'm getting this error Parse error: syntax error, unexpected '{' in /home/mydir/public_html/myfile.php on line 48 when I run this code if($_SESSION['loggedin'] == true) { if($_SESSION['email'] == base64_decode($_GET['need']) { I can't find any error's in it Quote Link to comment https://forums.phpfreaks.com/topic/65891-solved-parse-error-syntax-error-unexpected/ Share on other sites More sharing options...
marcus Posted August 20, 2007 Share Posted August 20, 2007 if($_SESSION['email'] == base64_decode($_GET['need']) { TO: if($_SESSION['email'] == base64_decode($_GET['need'])) { Never ended the IF statement. Quote Link to comment https://forums.phpfreaks.com/topic/65891-solved-parse-error-syntax-error-unexpected/#findComment-329383 Share on other sites More sharing options...
nathanmaxsonadil Posted August 20, 2007 Author Share Posted August 20, 2007 thanks so much Quote Link to comment https://forums.phpfreaks.com/topic/65891-solved-parse-error-syntax-error-unexpected/#findComment-329386 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.