dean7 Posted April 3, 2010 Share Posted April 3, 2010 Hi all, i have a website which needs to have a owner panel, so i created one but ive came though a couple of errors.. Even when the user is the correct level it tell them that they arnt, and when they arnt the right level they dont get redricted to the right place.. But doing that it also logs the user out of the website. anyone know why it does it? <?php session_start(); include ("includes/config.php"); include ("inlcudes/functions.php"); // Login info start! if(!isset($_SESSION['username']) || !isset($_SESSION['password'])){ header("Location: index.php"); }else{ $fetch_users_data = mysql_fetch_object(mysql_query("SELECT * FROM `users` WHERE username='".$_SESSION['username']."'")); } // Login info end! $username = $_SESSION['usernme']; $top = ("SELECT * FROM users WHERE username = '$username'"); $get = mysql_fetch_object($top); if ($get->userlevel != 4){ echo ("<font color='red>Go away,<br /> Your not the Owner, so jog on..<br /> Or be <b>banned!</font></b>"); }else{ ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Owner Pannel</title> </head> <body class="body"> <link rel="stylesheet" href="adminstyle.css" type="text/css"> <br /> <table align="center" class="table" width="70%" cellpadding="0" cellspacing="0"> <tr> <td colspan="3" class="header"><center>Owner Panel</center></td> </tr> <tr> <td colspan="3" class="forum"><center>Please note: All actions are logged!</center></td> </tr> <tr> <td class="forum"><center>Users Accounts:</center></td> <td class="forum"><center>Staffing</center></td> <tr> <td width="50%" colspan="1"><a href="../staff/viewmessage.php">View Users Messages</a></td> <td width="50%" colspan="1"><a href="../staff/ban.php">Ban User</a></td> </tr> <tr> <td width="50%" colspan="1"><a href="../staff/viewstats.php">View Users Stats</a></td> <td width="50%" colspan="1"><a href="../headstaff/ipban.php">Ip Ban</a></td> </tr> <tr> <td width="50%" colspan="1"><a href="../staff/checkgarage.php">Check Users Garage</a></td> <td width="50%" colspan="1"><a href="../staff/gameban.php">Game Banned Users</a></td> </tr> <tr> <td width="50%" colspan="1"><a href="../staff/viewnotepad.php">View User Notepad</a></td> <td width="50%" colspan="1"><a href="../staff/dupecheck.php">Dupe Check</a></td> </tr> <tr> <td width="50%" colspan="1"><a href="../headstaff/viewpass.php">View User Password</a></td> <td width="50%" colspan="1"><a href="../staff/takecredits.php">Take Credits</a></td> </tr> <tr> <td width="50%" colspan="1"><a href="../staff/clearprofile.php">Clear Users Profile</a></td> <td width="50%" colspan="1"><a href="../headstaff/takemoney.php">Take Users Money</a></td> </tr> <tr> <td width="50%" colspan="1"><a href="../headstaff/changeuserpass.php">Change Users Password</a></td> <td width="50%" colspan="1"><a href="../headstaff/makecrew.php">Make Crew</a></td> </tr> <tr> <td width="50%" colspan="1"> </td> <td width="50%" colspan="1"><a href="../headstaff/takecrew.php">Take Crew</a></td> </tr> <tr> <td width="50%" colspan="1"> </td> <td width="50%" colspan="1"><a href="../headstaff/givecredits.php">Give Credits</a></td> </tr> </table> <br /> <table align="center" class="table" width="70%" cellpadding="0" cellspacing="0"> <tr> <td width="50%" colspan="1" class="forum"><center>Cars</center></td> <td width="50%" colspan="1" class="forum"><center>Vans</center></td> </tr> <tr> <td width="50%" colspan="1"><a href="../headstaff/make-car-unique.php">Make Unique Car</a></td> <td width="50%" colspan="1"><a href="../headstaff/make-van-unique.php">Make Unique Van</a></td> </tr> <tr> <td width="50%" colspan="1"><a href="../headstaff/id-change-car.php">Change Id Of Car</a></td> <td width="50%" colspan="1"><a href="../headstaff/id-change-van.php">Change Id Of Van</a></td> </tr> <tr> <td width="50%" colspan="1"><a href="../headstaff/change-car-name.php">Change Car Name</a></td> <td width="50%" colspan="1"><a href="../headstaff/change-van-name.php">Change Van Name</a></td> </tr> <tr> <td width="50%" colspan="1"><a href="../headstaff/delete-unique-car.php">Delete Car Unique</a></td> <td width="50%" colspan="1"><a href="../headstaff/delete-unique-van.php">Delete Van Unique</a></td> </tr> <tr> <td width="50%" colspan="1"><a href="../headstaff/change-car-stats.php">Change Car Stats</a></td> <td width="50%" colspan="1"><a href="../headstaff/change-van-stats.php">Change Van Stats</a></td> </tr> </table> <br /> <table align="center" class="table" width="70%" cellpadding="0" cellspacing="0"> <tr> <td width="50%" colspan="1" class="forum"><center>Logs</center></td> <td width="50%" colspan="1" class="forum"><center>Reset</center></td> </tr> <tr> <td width="50%" colspan="1"><a href="../headstaff/adminlogs.php">Admin Logs</a></td> <td width="50%" colspan="1"><a href="../staff/reset-hts.php">Reset HTS</a></td> </tr> <tr> <td width="50%" colspan="1"><a href="../headstaff/headmodlogs.php">Head Mod Logs</a></td> <td width="50%" colspan="1"><a href="../staff/reset-gta.php">Reset GTA</a></td> </tr> <tr> <td width="50%" colspan="1"><a href="../headstaff/modlogs.php">Mod Logs</a></td> <td width="50%" colspan="1"><a href="../staff/reset-crime.php">Reset Crime</a></td> </tr> <tr> <td width="50%" colspan="1"><a href="../staff/userslogs.php">User Logs</a></td> <td width="50%" colspan="1"><a href="../staff/reset-drace.php">Reset Dream Race</a></td> </tr> <tr> <td width="50%" colspan="1" class="forum"><center>De-Mod</center></td> <td width="50%" colspan="1"><a href="../staff/reset-chase.php">Reset Chase</a></td> </tr> <tr> <td width="50%" colspan="1"><a href="../headstaff/demod-admin.php">De-mod Admin</a></td> <td width="50%" colspan="1"><a href="../staff/reset-chance.php">Reset Chance</a></td> </tr> <tr> <td width="50%" colspan="1"><a href="../headstaff/demod-headmod.php">De-mod Head Mod</a></td> <td width="50%" colspan="1"><a href="../staff/reset-showoff.php">Reset Car Show Off</a></td> </tr> <tr> <td width="50%" colspan="1"><a href="../headstaff/demod-mod.php">De-mod Mod</a></td> <td width="50%" colspan="1"><a href="../staff/reset-missions.php">Reset Missions</a></td> <tr> <td width="50%" colspan="1" class="forum"><center>Mod</center></td> <td width="50%" colspan="1"><a href="../staff/reset-money.php">Reset Money</a></td> </tr> <td width="50%" colspan="1"><a href="../headstaff/make-admin.php">Make Admin</a></td> <td width="50%" colspan="1"><a href="../staff/reset-rep.php">Reset Rep</a></td> </tr> </tr> <td width="50%" colspan="1"><a href="../headstaff/make-headmod.php">Make Head Mod</a></td> <td width="50%" colspan="1"> </td> </tr> </tr> <td width="50%" colspan="1"><a href="../headstaff/make-mod.php">Make Mod</a></td> <td width="50%" colspan="1"> </td> </tr> </table> <br /> <table align="center" class="table" width="70%" cellpadding="0" cellspacing="0"> <tr> <td width="50%" colspan="1" class="forum"><center>Other</center></td> </tr> <tr> <td width="50%" colspan="1"><a href="../headstaff/add-car-market-owner.php">Add Car To Market</a></td> </tr> <tr> <td width="50%" colspan="1"><a href="../staff/addnews.php">Add News</a></td> </tr> <tr> <td width="50%" colspan="1"><a href="../staff/staffnews.php">Add Staff News</a></td> </tr> </table> </body> </html> <?php } include ("footer.php"); ?> Sorry about length but it might all be needed. Thanks for you help Link to comment https://forums.phpfreaks.com/topic/197464-owner-panel-error/ Share on other sites More sharing options...
Lukeidiot Posted April 3, 2010 Share Posted April 3, 2010 Hi all, i have a website which needs to have a owner panel, so i created one but ive came though a couple of errors.. Even when the user is the correct level it tell them that they arnt, and when they arnt the right level they dont get redricted to the right place.. But doing that it also logs the user out of the website. anyone know why it does it? <?php session_start(); include ("includes/config.php"); include ("inlcudes/functions.php"); // Login info start! if(!isset($_SESSION['username']) || !isset($_SESSION['password'])){ header("Location: index.php"); }else{ $fetch_users_data = mysql_fetch_object(mysql_query("SELECT * FROM `users` WHERE username='".$_SESSION['username']."'")); } // Login info end! $username = $_SESSION['usernme']; $top = ("SELECT * FROM users WHERE username = '$username'"); $get = mysql_fetch_object($top); if ($get->userlevel != 4){ echo ("<font color='red>Go away,<br /> Your not the Owner, so jog on..<br /> Or be <b>banned!</font></b>"); }else{ ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Owner Pannel</title> </head> <body class="body"> <link rel="stylesheet" href="adminstyle.css" type="text/css"> <br /> <table align="center" class="table" width="70%" cellpadding="0" cellspacing="0"> <tr> <td colspan="3" class="header"><center>Owner Panel</center></td> </tr> <tr> <td colspan="3" class="forum"><center>Please note: All actions are logged!</center></td> </tr> <tr> <td class="forum"><center>Users Accounts:</center></td> <td class="forum"><center>Staffing</center></td> <tr> <td width="50%" colspan="1"><a href="../staff/viewmessage.php">View Users Messages</a></td> <td width="50%" colspan="1"><a href="../staff/ban.php">Ban User</a></td> </tr> <tr> <td width="50%" colspan="1"><a href="../staff/viewstats.php">View Users Stats</a></td> <td width="50%" colspan="1"><a href="../headstaff/ipban.php">Ip Ban</a></td> </tr> <tr> <td width="50%" colspan="1"><a href="../staff/checkgarage.php">Check Users Garage</a></td> <td width="50%" colspan="1"><a href="../staff/gameban.php">Game Banned Users</a></td> </tr> <tr> <td width="50%" colspan="1"><a href="../staff/viewnotepad.php">View User Notepad</a></td> <td width="50%" colspan="1"><a href="../staff/dupecheck.php">Dupe Check</a></td> </tr> <tr> <td width="50%" colspan="1"><a href="../headstaff/viewpass.php">View User Password</a></td> <td width="50%" colspan="1"><a href="../staff/takecredits.php">Take Credits</a></td> </tr> <tr> <td width="50%" colspan="1"><a href="../staff/clearprofile.php">Clear Users Profile</a></td> <td width="50%" colspan="1"><a href="../headstaff/takemoney.php">Take Users Money</a></td> </tr> <tr> <td width="50%" colspan="1"><a href="../headstaff/changeuserpass.php">Change Users Password</a></td> <td width="50%" colspan="1"><a href="../headstaff/makecrew.php">Make Crew</a></td> </tr> <tr> <td width="50%" colspan="1"> </td> <td width="50%" colspan="1"><a href="../headstaff/takecrew.php">Take Crew</a></td> </tr> <tr> <td width="50%" colspan="1"> </td> <td width="50%" colspan="1"><a href="../headstaff/givecredits.php">Give Credits</a></td> </tr> </table> <br /> <table align="center" class="table" width="70%" cellpadding="0" cellspacing="0"> <tr> <td width="50%" colspan="1" class="forum"><center>Cars</center></td> <td width="50%" colspan="1" class="forum"><center>Vans</center></td> </tr> <tr> <td width="50%" colspan="1"><a href="../headstaff/make-car-unique.php">Make Unique Car</a></td> <td width="50%" colspan="1"><a href="../headstaff/make-van-unique.php">Make Unique Van</a></td> </tr> <tr> <td width="50%" colspan="1"><a href="../headstaff/id-change-car.php">Change Id Of Car</a></td> <td width="50%" colspan="1"><a href="../headstaff/id-change-van.php">Change Id Of Van</a></td> </tr> <tr> <td width="50%" colspan="1"><a href="../headstaff/change-car-name.php">Change Car Name</a></td> <td width="50%" colspan="1"><a href="../headstaff/change-van-name.php">Change Van Name</a></td> </tr> <tr> <td width="50%" colspan="1"><a href="../headstaff/delete-unique-car.php">Delete Car Unique</a></td> <td width="50%" colspan="1"><a href="../headstaff/delete-unique-van.php">Delete Van Unique</a></td> </tr> <tr> <td width="50%" colspan="1"><a href="../headstaff/change-car-stats.php">Change Car Stats</a></td> <td width="50%" colspan="1"><a href="../headstaff/change-van-stats.php">Change Van Stats</a></td> </tr> </table> <br /> <table align="center" class="table" width="70%" cellpadding="0" cellspacing="0"> <tr> <td width="50%" colspan="1" class="forum"><center>Logs</center></td> <td width="50%" colspan="1" class="forum"><center>Reset</center></td> </tr> <tr> <td width="50%" colspan="1"><a href="../headstaff/adminlogs.php">Admin Logs</a></td> <td width="50%" colspan="1"><a href="../staff/reset-hts.php">Reset HTS</a></td> </tr> <tr> <td width="50%" colspan="1"><a href="../headstaff/headmodlogs.php">Head Mod Logs</a></td> <td width="50%" colspan="1"><a href="../staff/reset-gta.php">Reset GTA</a></td> </tr> <tr> <td width="50%" colspan="1"><a href="../headstaff/modlogs.php">Mod Logs</a></td> <td width="50%" colspan="1"><a href="../staff/reset-crime.php">Reset Crime</a></td> </tr> <tr> <td width="50%" colspan="1"><a href="../staff/userslogs.php">User Logs</a></td> <td width="50%" colspan="1"><a href="../staff/reset-drace.php">Reset Dream Race</a></td> </tr> <tr> <td width="50%" colspan="1" class="forum"><center>De-Mod</center></td> <td width="50%" colspan="1"><a href="../staff/reset-chase.php">Reset Chase</a></td> </tr> <tr> <td width="50%" colspan="1"><a href="../headstaff/demod-admin.php">De-mod Admin</a></td> <td width="50%" colspan="1"><a href="../staff/reset-chance.php">Reset Chance</a></td> </tr> <tr> <td width="50%" colspan="1"><a href="../headstaff/demod-headmod.php">De-mod Head Mod</a></td> <td width="50%" colspan="1"><a href="../staff/reset-showoff.php">Reset Car Show Off</a></td> </tr> <tr> <td width="50%" colspan="1"><a href="../headstaff/demod-mod.php">De-mod Mod</a></td> <td width="50%" colspan="1"><a href="../staff/reset-missions.php">Reset Missions</a></td> <tr> <td width="50%" colspan="1" class="forum"><center>Mod</center></td> <td width="50%" colspan="1"><a href="../staff/reset-money.php">Reset Money</a></td> </tr> <td width="50%" colspan="1"><a href="../headstaff/make-admin.php">Make Admin</a></td> <td width="50%" colspan="1"><a href="../staff/reset-rep.php">Reset Rep</a></td> </tr> </tr> <td width="50%" colspan="1"><a href="../headstaff/make-headmod.php">Make Head Mod</a></td> <td width="50%" colspan="1"> </td> </tr> </tr> <td width="50%" colspan="1"><a href="../headstaff/make-mod.php">Make Mod</a></td> <td width="50%" colspan="1"> </td> </tr> </table> <br /> <table align="center" class="table" width="70%" cellpadding="0" cellspacing="0"> <tr> <td width="50%" colspan="1" class="forum"><center>Other</center></td> </tr> <tr> <td width="50%" colspan="1"><a href="../headstaff/add-car-market-owner.php">Add Car To Market</a></td> </tr> <tr> <td width="50%" colspan="1"><a href="../staff/addnews.php">Add News</a></td> </tr> <tr> <td width="50%" colspan="1"><a href="../staff/staffnews.php">Add Staff News</a></td> </tr> </table> </body> </html> <?php } include ("footer.php"); ?> Sorry about length but it might all be needed. Thanks for you help Make sure you have session_start(); On top of every page that is part of the session. Link to comment https://forums.phpfreaks.com/topic/197464-owner-panel-error/#findComment-1036469 Share on other sites More sharing options...
dean7 Posted April 3, 2010 Author Share Posted April 3, 2010 Hi all, i have a website which needs to have a owner panel, so i created one but ive came though a couple of errors.. Even when the user is the correct level it tell them that they arnt, and when they arnt the right level they dont get redricted to the right place.. But doing that it also logs the user out of the website. anyone know why it does it? <?php session_start(); include ("includes/config.php"); include ("inlcudes/functions.php"); // Login info start! if(!isset($_SESSION['username']) || !isset($_SESSION['password'])){ header("Location: index.php"); }else{ $fetch_users_data = mysql_fetch_object(mysql_query("SELECT * FROM `users` WHERE username='".$_SESSION['username']."'")); } // Login info end! $username = $_SESSION['usernme']; $top = ("SELECT * FROM users WHERE username = '$username'"); $get = mysql_fetch_object($top); if ($get->userlevel != 4){ echo ("<font color='red>Go away,<br /> Your not the Owner, so jog on..<br /> Or be <b>banned!</font></b>"); }else{ ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Owner Pannel</title> </head> <body class="body"> <link rel="stylesheet" href="adminstyle.css" type="text/css"> <br /> <table align="center" class="table" width="70%" cellpadding="0" cellspacing="0"> <tr> <td colspan="3" class="header"><center>Owner Panel</center></td> </tr> <tr> <td colspan="3" class="forum"><center>Please note: All actions are logged!</center></td> </tr> <tr> <td class="forum"><center>Users Accounts:</center></td> <td class="forum"><center>Staffing</center></td> <tr> <td width="50%" colspan="1"><a href="../staff/viewmessage.php">View Users Messages</a></td> <td width="50%" colspan="1"><a href="../staff/ban.php">Ban User</a></td> </tr> <tr> <td width="50%" colspan="1"><a href="../staff/viewstats.php">View Users Stats</a></td> <td width="50%" colspan="1"><a href="../headstaff/ipban.php">Ip Ban</a></td> </tr> <tr> <td width="50%" colspan="1"><a href="../staff/checkgarage.php">Check Users Garage</a></td> <td width="50%" colspan="1"><a href="../staff/gameban.php">Game Banned Users</a></td> </tr> <tr> <td width="50%" colspan="1"><a href="../staff/viewnotepad.php">View User Notepad</a></td> <td width="50%" colspan="1"><a href="../staff/dupecheck.php">Dupe Check</a></td> </tr> <tr> <td width="50%" colspan="1"><a href="../headstaff/viewpass.php">View User Password</a></td> <td width="50%" colspan="1"><a href="../staff/takecredits.php">Take Credits</a></td> </tr> <tr> <td width="50%" colspan="1"><a href="../staff/clearprofile.php">Clear Users Profile</a></td> <td width="50%" colspan="1"><a href="../headstaff/takemoney.php">Take Users Money</a></td> </tr> <tr> <td width="50%" colspan="1"><a href="../headstaff/changeuserpass.php">Change Users Password</a></td> <td width="50%" colspan="1"><a href="../headstaff/makecrew.php">Make Crew</a></td> </tr> <tr> <td width="50%" colspan="1"> </td> <td width="50%" colspan="1"><a href="../headstaff/takecrew.php">Take Crew</a></td> </tr> <tr> <td width="50%" colspan="1"> </td> <td width="50%" colspan="1"><a href="../headstaff/givecredits.php">Give Credits</a></td> </tr> </table> <br /> <table align="center" class="table" width="70%" cellpadding="0" cellspacing="0"> <tr> <td width="50%" colspan="1" class="forum"><center>Cars</center></td> <td width="50%" colspan="1" class="forum"><center>Vans</center></td> </tr> <tr> <td width="50%" colspan="1"><a href="../headstaff/make-car-unique.php">Make Unique Car</a></td> <td width="50%" colspan="1"><a href="../headstaff/make-van-unique.php">Make Unique Van</a></td> </tr> <tr> <td width="50%" colspan="1"><a href="../headstaff/id-change-car.php">Change Id Of Car</a></td> <td width="50%" colspan="1"><a href="../headstaff/id-change-van.php">Change Id Of Van</a></td> </tr> <tr> <td width="50%" colspan="1"><a href="../headstaff/change-car-name.php">Change Car Name</a></td> <td width="50%" colspan="1"><a href="../headstaff/change-van-name.php">Change Van Name</a></td> </tr> <tr> <td width="50%" colspan="1"><a href="../headstaff/delete-unique-car.php">Delete Car Unique</a></td> <td width="50%" colspan="1"><a href="../headstaff/delete-unique-van.php">Delete Van Unique</a></td> </tr> <tr> <td width="50%" colspan="1"><a href="../headstaff/change-car-stats.php">Change Car Stats</a></td> <td width="50%" colspan="1"><a href="../headstaff/change-van-stats.php">Change Van Stats</a></td> </tr> </table> <br /> <table align="center" class="table" width="70%" cellpadding="0" cellspacing="0"> <tr> <td width="50%" colspan="1" class="forum"><center>Logs</center></td> <td width="50%" colspan="1" class="forum"><center>Reset</center></td> </tr> <tr> <td width="50%" colspan="1"><a href="../headstaff/adminlogs.php">Admin Logs</a></td> <td width="50%" colspan="1"><a href="../staff/reset-hts.php">Reset HTS</a></td> </tr> <tr> <td width="50%" colspan="1"><a href="../headstaff/headmodlogs.php">Head Mod Logs</a></td> <td width="50%" colspan="1"><a href="../staff/reset-gta.php">Reset GTA</a></td> </tr> <tr> <td width="50%" colspan="1"><a href="../headstaff/modlogs.php">Mod Logs</a></td> <td width="50%" colspan="1"><a href="../staff/reset-crime.php">Reset Crime</a></td> </tr> <tr> <td width="50%" colspan="1"><a href="../staff/userslogs.php">User Logs</a></td> <td width="50%" colspan="1"><a href="../staff/reset-drace.php">Reset Dream Race</a></td> </tr> <tr> <td width="50%" colspan="1" class="forum"><center>De-Mod</center></td> <td width="50%" colspan="1"><a href="../staff/reset-chase.php">Reset Chase</a></td> </tr> <tr> <td width="50%" colspan="1"><a href="../headstaff/demod-admin.php">De-mod Admin</a></td> <td width="50%" colspan="1"><a href="../staff/reset-chance.php">Reset Chance</a></td> </tr> <tr> <td width="50%" colspan="1"><a href="../headstaff/demod-headmod.php">De-mod Head Mod</a></td> <td width="50%" colspan="1"><a href="../staff/reset-showoff.php">Reset Car Show Off</a></td> </tr> <tr> <td width="50%" colspan="1"><a href="../headstaff/demod-mod.php">De-mod Mod</a></td> <td width="50%" colspan="1"><a href="../staff/reset-missions.php">Reset Missions</a></td> <tr> <td width="50%" colspan="1" class="forum"><center>Mod</center></td> <td width="50%" colspan="1"><a href="../staff/reset-money.php">Reset Money</a></td> </tr> <td width="50%" colspan="1"><a href="../headstaff/make-admin.php">Make Admin</a></td> <td width="50%" colspan="1"><a href="../staff/reset-rep.php">Reset Rep</a></td> </tr> </tr> <td width="50%" colspan="1"><a href="../headstaff/make-headmod.php">Make Head Mod</a></td> <td width="50%" colspan="1"> </td> </tr> </tr> <td width="50%" colspan="1"><a href="../headstaff/make-mod.php">Make Mod</a></td> <td width="50%" colspan="1"> </td> </tr> </table> <br /> <table align="center" class="table" width="70%" cellpadding="0" cellspacing="0"> <tr> <td width="50%" colspan="1" class="forum"><center>Other</center></td> </tr> <tr> <td width="50%" colspan="1"><a href="../headstaff/add-car-market-owner.php">Add Car To Market</a></td> </tr> <tr> <td width="50%" colspan="1"><a href="../staff/addnews.php">Add News</a></td> </tr> <tr> <td width="50%" colspan="1"><a href="../staff/staffnews.php">Add Staff News</a></td> </tr> </table> </body> </html> <?php } include ("footer.php"); ?> Sorry about length but it might all be needed. Thanks for you help Make sure you have session_start(); On top of every page that is part of the session. Yeah at the moment I have it on the pages I need but it still does all the things it shouldnt.. (Things in the topic content) Link to comment https://forums.phpfreaks.com/topic/197464-owner-panel-error/#findComment-1036497 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.