Search the Community
Showing results for tags 'sessions....'.
-
ok I have a manager.php file which is constructed as such <?php require ("phpscript/stack_scripts.php");/// required add customer script $title= "Total Auto Clinic";/// Title For page ?> <?php $admin_view=mysql_query("SELECT * FROM repair_orders JOIN (serviced_vechicles) ON repair_orders.car_id=serviced_vechicles.car_id WHERE repair_status='1'"); $inshop=mysql_num_rows($admin_view); $fetch=mysql_fetch_array($admin_view); ?> <!doctype html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, maxium-scale=1.0, minimum-scale=1.0, initial-scale=1.0"/> <meta name="viewport" content="width=device-width"> <?php include("css_stack.php") ?> <title><?php echo $title?></title> </head> <body> <div id="wrapper" > <?php include("structure/header.php") ?> <?php include("structure/nav.php") ?> <?php include("structure/contents.php") ?> <?php include("structure/footer.php") ?> </div> <?php include("java_stack.php") ?> </body> </html> if the user not logged in as a manager it will display the login page.. <?php if (!isset($_SESSION['manager'])){ include("content_structures/manager_signin.php"); }else{ /////////////////////////////////////////////// if (!isset($_GET['nav'])){ echo "nav is set"; include("content_structures/current_service.php"); }else { include("content_structures/".$_GET['nav'].".php"); } //it may vary from these three files // //include("content_structures/rev.php"); //include("content_structures/update_cars.php"); //include("content_structures/current_service.php"); //include("content_structures/update_info.php"); /////////////////////////////////////////////// } ?> else depending on which link is clicked that is the content which will display. Current_Service is set a default the problem that I am having is when I login as the manager and select one of the available links in the nav bar my session is ended and I am returned to the login page. any help will be greatly appreciated..