dean7 Posted August 22, 2009 Share Posted August 22, 2009 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 . Quote Link to comment https://forums.phpfreaks.com/topic/171446-solved-unexpected-end/ Share on other sites More sharing options...
KevinM1 Posted August 22, 2009 Share Posted August 22, 2009 There's no closing bracket on your else. Quote Link to comment https://forums.phpfreaks.com/topic/171446-solved-unexpected-end/#findComment-904122 Share on other sites More sharing options...
dean7 Posted August 22, 2009 Author Share Posted August 22, 2009 Oh yeah, thanks. Though it was somthing simple Quote Link to comment https://forums.phpfreaks.com/topic/171446-solved-unexpected-end/#findComment-904124 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.