Jump to content

[SOLVED] $end - I know what it means...


Recommended Posts

I am getting this error in my side.php or my navigation with view active page.

 

anyways I am getting this error:

 

Parse error: syntax error, unexpected $end in /mounted-storage/home48c/sub007/sc33591-LWQU/www/style/include/cons/side.php on line 47

 

line 47 is my last line, I cannot find any missing } or { anywhere

 

here is my code, any help would be great:

 

<?php
include "style/include/session.php";
?>
<div class="navc">
<div class="headb">Viewing Site</div>
<p>       
<?php
/**
* Just a little page footer, tells how many registered members
* there are, how many users currently logged in and viewing site,
* and how many guests viewing site. Active users are displayed,
* with link to their user information.
*/
include "style/include/cons/online.php";
echo "<br />Registered Members: $database->num_active_users <br />";
echo "Guests: $database->num_active_guests<br /><br />";                 
//include("style/include/view_active.php");
?>
</p>
<div class="headb">Navigation</div>
<?php 
if($session->logged_in){
print <<<LOG
<a href="index.php"><img src="style/img/home.png" hspace="3" vspace="3" border="0" align="absmiddle" /> Home</a>
<a href=user/members.php><img src=style/img/user.png hspace=3 vspace=3 border=0 align=absmiddle /> Members*</a>
<a href="style/include/process.php"><img src="style/img/login.png" hspace="3" vspace="3" border="0" align="absmiddle" /> Logout</a>
<a href="info/info.php"><img src="style/img/info.png" hspace="3" vspace="3" border="0" align="absmiddle" /> Info</a>
<div class="headb">Quick Links</div>
<a href="user/forgotpass.php">Forgot Password</a></div>
print LOG;
}
else
{
print <<<LOGI
<a href="index.php"><img src="style/img/home.png" hspace="3" vspace="3" border="0" align="absmiddle" /> Home</a>
<a href="user/members.php"><img src="style/img/user.png" hspace="3" vspace="3" border="0" align="absmiddle" /> Members</a>
<a href="login.php"><img src="style/img/login.png" hspace="3" vspace="3" border="0" align="absmiddle" /> Login</a>
<a href="register.php"><img src="style/img/reg.png" hspace="3" vspace="3" border="0" align="absmiddle" /> Register</a>
<a href="info/info.php"><img src="style/img/info.png" hspace="3" vspace="3" border="0" align="absmiddle" /> Info</a>
<div class="headb">Quick Links</div>
<a href="user/forgotpass.php">Forgot Password</a></div>
LOGI;
}
?>

Link to comment
https://forums.phpfreaks.com/topic/81308-solved-end-i-know-what-it-means/
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.