Jump to content

Archived

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

lpxxfaintxx

Syntax Error

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?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Helps if you let us know which is line 51. And please, indent your code.... it burns my eyes :)

Share this post


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

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

×

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.