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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.