Jump to content


Photo

Syntax Error


  • Please log in to reply
7 replies to this topic

#1 lpxxfaintxx

lpxxfaintxx
  • Members
  • PipPipPip
  • Advanced Member
  • 181 posts

Posted 13 June 2006 - 09:41 PM

<?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>
?>


[!--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?

#2 joquius

joquius
  • Members
  • PipPipPip
  • Advanced Member
  • 319 posts

Posted 13 June 2006 - 09:44 PM

}
</center>
?>

what's going on, < /center > is html
z..z..z..z..z..z..z..z..

#3 lpxxfaintxx

lpxxfaintxx
  • Members
  • PipPipPip
  • Advanced Member
  • 181 posts

Posted 13 June 2006 - 09:51 PM

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.

#4 trq

trq
  • Staff Alumni
  • Advanced Member
  • 31,041 posts

Posted 13 June 2006 - 09:52 PM

Helps if you let us know which is line 51. And please, indent your code.... it burns my eyes :)

#5 lpxxfaintxx

lpxxfaintxx
  • Members
  • PipPipPip
  • Advanced Member
  • 181 posts

Posted 13 June 2006 - 09:55 PM

There is no line "51"... the last line is 50.

#6 kenrbnsn

kenrbnsn
  • Staff Alumni
  • Advanced Member
  • 8,235 posts
  • LocationHillsborough, NJ, USA

Posted 13 June 2006 - 10:19 PM

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

#7 lpxxfaintxx

lpxxfaintxx
  • Members
  • PipPipPip
  • Advanced Member
  • 181 posts

Posted 13 June 2006 - 10:28 PM

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.

#8 joquius

joquius
  • Members
  • PipPipPip
  • Advanced Member
  • 319 posts

Posted 13 June 2006 - 10:32 PM

just for interests sake, post the new code?
z..z..z..z..z..z..z..z..




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users