I’m creating restriction for specific menu list, for example: If Admin is logged they can view the View menu if not it will hide from the user. <?php session_start(); include_once 'dbconnect.php'; if(!isset($_SESSION['user'])) { header("Location: index.php"); } $res = mysql_query("SELECT * FROM accounts WHERE user_id=".$_SESSION['id']); $userRow = mysql_fetch_array($res); //html <li> Home </li> <li> View </li> // […]
The post Creating a restriction in my menu list appeared first on BlogoSfera.