Jump to content

[SOLVED] What is Wrong?


Lamez

Recommended Posts

Hey Guys,

I keep on getting this error saying there is something wrong on line 51

Here is line 51 and on, please help I have clueless

 

<?php
$getlink = $_GET["process"];

if ($getlink == "members_list") {
echo "Hello This Is Page 1";
}
elseif ($getlink == "logout") {

setcookie("loggedin", "TRUE", time()-(3600 * 24)); //logs the uer out
setcookie("$username");

print <<<LOG
<meta http-equiv="Refresh" content="3; URL=../../index.php">
      <div class="box">
<center><font size="3">You are logged out.</font></center>
</div>
LOG;
}
else {
print <<<NEW //The Main Links
     </u>

 <div class="boxn">
  <font size="3">
     </u>

       <div class="left">
   <br />
   <br />
          <p><a href="upload/udsection.php">Upload\Download Section</a>
          <br />
          <br />
          <a href="proxy/goto.php">Lamez's Proxy</a> 
	   <br />
	  <br /> 
          <a href="arcade/playgame.php">Arcade</a><font color="#FF0000" size="1"><font color="#000000">*</font>Coming Soon!</font></p>
	  </div>


         <div class="right">
	 <br />
	 <br />
          <p><a href="contact.php">Suggestions\Contact Lamez</a>		  
	  <br />
          <br />
          <a href="news/news.php">Website News</a>
	  <br />
          <br />
          <font color="#FF0000" size="1">Coming Soon!<font color="#000000">*</font></font><a href="lamez/corner.php">Lamez's Corner</a></p>
           </div>
     </div>
NEW;
}	 
?>

 

 

Link to comment
Share on other sites

Oh a I am very sorry, I was in a rush

 

Here is my error

 

Parse error: syntax error, unexpected T_SL in /mounted-storage/home48c/sub007/sc33591-LWQU/www/login/_members/members.php on line 51

 

line 51 starts here

 

print <<<NEW //The Main Links LINE 51 HERE
     </u>

 <div class="boxn">
  <font size="3">
     </u>

       <div class="left">
   <br />
   <br />
          <p><a href="upload/udsection.php">Upload\Download Section</a>
          <br />
          <br />
          <a href="proxy/goto.php">Lamez's Proxy</a> 
	   <br />
	  <br /> 
          <a href="arcade/playgame.php">Arcade</a><font color="#FF0000" size="1"><font color="#000000">*</font>Coming Soon!</font></p>
	  </div>


         <div class="right">
	 <br />
	 <br />
          <p><a href="contact.php">Suggestions\Contact Lamez</a>		  
	  <br />
          <br />
          <a href="news/news.php">Website News</a>
	  <br />
          <br />
          <font color="#FF0000" size="1">Coming Soon!<font color="#000000">*</font></font><a href="lamez/corner.php">Lamez's Corner</a></p>
           </div>
     </div>
NEW;
}	 
?>

Link to comment
Share on other sites

change line

print <<<NEW //The Main Links

to

print <<<NEW

no spaces after NEW

 

Right. Heredoc syntax , which can be read about at http://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc , cannot contain anything else on the beginning line or the ending line. (The identifier is to be terminated with a newline.)

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.