lpxxfaintxx Posted June 13, 2006 Share Posted June 13, 2006 [code]<?phprequire_once "maincore.php";session_start();session_checker(); require_once "connect.php";if(isset($_GET['and'])) {echo <<<__HTML_ENDUpload Successful! <a href="membersarea.php">Click Here to Continue...</a>__HTML_END;} else {echo <<<__HTML_END<center><u>Navigation:</u><Br><br><br><a href="myfiles.php">My files<br><a><a href="upload.php">Upload New File<br></a>Edit Profile<br><br><br><a href="logout.php">Log Out</a>__HTML_END;if($_SESSION['user_level'] == 1){echo <<<__HTML_ENDWelcome, $username. You are a Moderator. <Br><br><a href="today.php?view=files">Todays Upload</a><a href="today.php?view=users">New Registed Members Today</a><a href="logout.php">Log Out</a>__HTML_END;}if($_SESSION['user_level'] == 2){echo <<<__HTML_ENDWelcome, $username. You are an Administrator.<a href="today.php?view=files">Todays Upload</a><a href="today.php?view=users">View All Uploads</a><a href="today.php?view=users">New Registed Members Today</a><a href="today.php?view=files">View All Members</a><a href="logout.php">Log Out</a>__HTML_END;}}</center>?>[/code][!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]Parse error: syntax error, unexpected '}', expecting ',' or ';' in /home/informed/public_html/projects/membership/membersarea.php on line 51[/quote]I REALLY don't know where I went wrong. Looked everywhere, but just can't find it. Anyone care to show me where I went wrong? Quote Link to comment https://forums.phpfreaks.com/topic/11923-syntax-error/ Share on other sites More sharing options...
joquius Posted June 13, 2006 Share Posted June 13, 2006 }</center>?>what's going on, < /center > is html Quote Link to comment https://forums.phpfreaks.com/topic/11923-syntax-error/#findComment-45237 Share on other sites More sharing options...
lpxxfaintxx Posted June 13, 2006 Author Share Posted June 13, 2006 Doesn't matter, I tried getting rid of the Center. Error still remains..edit: There is no line 51... the last line is line 50. Quote Link to comment https://forums.phpfreaks.com/topic/11923-syntax-error/#findComment-45243 Share on other sites More sharing options...
trq Posted June 13, 2006 Share Posted June 13, 2006 Helps if you let us know which is line 51. And please, indent your code.... it burns my eyes :) Quote Link to comment https://forums.phpfreaks.com/topic/11923-syntax-error/#findComment-45244 Share on other sites More sharing options...
lpxxfaintxx Posted June 13, 2006 Author Share Posted June 13, 2006 There is no line "51"... the last line is 50. Quote Link to comment https://forums.phpfreaks.com/topic/11923-syntax-error/#findComment-45246 Share on other sites More sharing options...
kenrbnsn Posted June 13, 2006 Share Posted June 13, 2006 I copied your code and, after commenting out your two include statements and removing the "<center />" line, I got no syntax errors. Check the code in your includes.Ken Quote Link to comment https://forums.phpfreaks.com/topic/11923-syntax-error/#findComment-45259 Share on other sites More sharing options...
lpxxfaintxx Posted June 13, 2006 Author Share Posted June 13, 2006 Wierd... I took out the includes and <center>, but the error is still here for me. :/ [a href=\"http://informedia.ws/projects/membership/membersarea.php\" target=\"_blank\"]http://informedia.ws/projects/membership/membersarea.php[/a]edit: Ok, problem gone... honestly, I still have no idea what it was. I got rid of the includes, and the center.. still the error occured. Then I started playing with things, then all of a sudden, it works. Quote Link to comment https://forums.phpfreaks.com/topic/11923-syntax-error/#findComment-45265 Share on other sites More sharing options...
joquius Posted June 13, 2006 Share Posted June 13, 2006 just for interests sake, post the new code? Quote Link to comment https://forums.phpfreaks.com/topic/11923-syntax-error/#findComment-45268 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.