Jump to content

Recommended Posts

Hi all, on my website on the nav i have an error witch says

 

Parse error: syntax error, unexpected $end in /home/a7502957/public_html/nav.php on line 186

 

My code

 

<div id="masterdiv">

<?php
if($loggged[username] && $logged[level]==owner)
{
echo "<div class='menutitle' onclick='SwitchMenu('sub1')'>Staff Panel</div>
<span class='submenu' id='sub1'>
- <a href='../admin/index.php' target='mainFrame'>Admin</a><br>
                 - <a href='headmod.php' target='mainFrame'>Headmod</a><br>
	- <a href='mod.php' target='mainFame'>Mod</a><br>
	- <a href='owner.php' target='mainFrame'>Owner</a>
       </span>";
}else{
echo ' ';
?>

<div class="menutitle" onclick="SwitchMenu('sub2')">Genral</div>
<span class="submenu" id="sub2">
	- <a href="index2.php" target="mainFrame">News</a><br>
	- <a href="find.php" target="mainFrame">Find User</a><br>
	- <a href="online.php" target="mainFrame">Online Users</a><br>
                - <a href="members.php" target="mainFrame">All Members</a><br>
</span>

<div class="menutitle" onclick="SwitchMenu('sub3')">Communiation</div>
<span class="submenu" id="sub3">
	- <a href="messages.php?inbox.php" target="mainFrame">Inbox</a><br>
                - <a href="forum.php" target="mainFrame">Forum</a><br>
                - <a href="chat.php" target="mainFrame">Chat</a><br>
</span>

<div class="menutitle" onclick="SwitchMenu('sub4')">User Cp</div>
<span class="submenu" id="sub4">
	- <a href="members.php?user=$id" target="mainFrame">Veiw Profile</a><br>
	- <a href="editprofile.php" target="mainFrame">Edit Profile</a><br>
	- <a href="allstats.php" target="mainFrame">My Stats</a><br>
</span>

<div class="menutitle" onclick="SwitchMenu('sub5')">Crew</div>
<span class="submenu" id="sub5">
	- <a href="makecrew.php" target="mainFrame">Make A Crew</a><br>
	- <a href="allcrews.php" target="mainFrame">All Crews</a><br>
	- <a href="crewmanage.php" target="mainFrame">Crew Management</a><br>
</span>

        <div class="menutitle" onclick="SwitchMenu('sub6')">Games</div>
<span class="submenu" id="sub6">
	- <a href="actiongames.php" target="mainFrame">Action</a><br>
	- <a href="fightinggames.php" target="mainFrame">Fighting</a><br>
	- <a href="racinggames.php" target="mainFrame">Racing</a><br>
                - <a href="puzzelgames.php" target="mainFrame">Puzzle</a><br>
                - <a href="othergames.php" target="mainFrame">Other</a><br>
</span>

        <div class="menutitle" onclick="SwitchMenu('sub7')"><a href="Logout.php" target="mainFrame">Logout</a></div>
<span class="submenu" id="sub7">
</span>;

</div> // line 168

 

Carnt seem to find out why it says unexpected $end.

 

Can anyone help please?

 

Thanks for your help . :)

 

Link to comment
https://forums.phpfreaks.com/topic/171446-solved-unexpected-end/
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.