$_SESSION['admin_login'] = "******"; $currentAdmin = new Admin(); $currentAdmin->setUserid($result['queryarray']['UserId']); $currentAdmin->setFirstname($result['queryarray']['FirstName']); $currentAdmin->setLastname($result['queryarray']['LastName']); $currentAdmin->setPrivilege($result['queryarray']['Privilege_id']); $currentAdmin->setTelno($result['queryarray']['TelNum']); $_SESSION['currentAdmin'] = $currentAdmin; header("location:../AdminInterface/AdminHome.php"); // Redirecting To Other Page } if ($result['queryarray']['Privilege_id'] == 2) { $_SESSION['instructor_login'] = "******"; $currentInstructor = new InstructorObject(); $currentInstructor->setUserid($result['queryarray']['UserId']); $currentInstructor->setFirstname($result['queryarray']['FirstName']); $currentInstructor->setLastname($result['queryarray']['LastName']); $currentInstructor->setPrivilege($result['queryarray']['Privilege_id']); $currentInstructor->setTelno($result['queryarray']['TelNum']); $_SESSION['currentInstructor'] = $currentInstructor; header("location:../InstructorInterface/inshomepage.php"); } if ($result['queryarray']['Privilege_id'] == 3) { $_SESSION['teachingassistant_login'] = "******"; $currentTeachingAssistant = new TeachingAssistant(); $currentTeachingAssistant->setUserid($result['queryarray']['UserId']); $currentTeachingAssistant->setFirstname($result['queryarray']['FirstName']); $currentTeachingAssistant->setLastname($result['queryarray']['LastName']); $currentTeachingAssistant->setPrivilege($result['queryarray']['Privilege_id']); $currentTeachingAssistant->setTelno($result['queryarray']['TelNum']); $_SESSION['currentTeachingAssistant'] = $currentTeachingAssistant;