Jump to content

Syntax Error


lpxxfaintxx

Recommended Posts

[code]
<?php
require_once "maincore.php";
session_start();
session_checker();
require_once "connect.php";

if(isset($_GET['and'])) {

echo <<<__HTML_END

Upload 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_END
Welcome, $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_END
Welcome, $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?
Link to comment
https://forums.phpfreaks.com/topic/11923-syntax-error/
Share on other sites

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.
Link to comment
https://forums.phpfreaks.com/topic/11923-syntax-error/#findComment-45265
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.