I am getting an error while running a project using xamp server. The error is Notice: Undefined index: access in C:\xampp\htdocs\Course\includes\header.php on line 8 . I include the header.php file here, please help me.
<?php
If (!isset($user) && !stristr($_SERVER['REQUEST_URI'],'login.php')  
                && !stristr($_SERVER['REQUEST_URI'],'add_user.php')
                 && !stristr($_SERVER['REQUEST_URI'],'forgotten_password.php')) {   
    $user = $_SESSION['learner'];
    $user->set_profile();
}
If ($_GET['access'] && !stristr($_SERVER['REQUEST_URI'],'login.php')) {
tep_set_accessibility($user->id,$_GET['access']);
    $user = $_SESSION['learner'];
    $user->set_profile();
}
?>
 
     
    