} break; case 2: if (isset($_REQUEST['fn'])) { include_once 'administrator.php'; include_once 'users.php'; $fname = $_REQUEST['fn']; $sname = $_REQUEST['sn']; $gender = $_REQUEST['gender']; $department = $_REQUEST['dpt']; $username = $_REQUEST['user']; $password = $_REQUEST['pass']; $obj = new administrator(); $user = new users(); $admin = 1; if (!$obj->add_admin($sname, $fname, $gender, $department)) { echo '<div id="divStatus" class="error"> Could Not Add Admin <span class="ti-face-sad" ></span> </div>'; } else { $id = $obj->get_insert_id(); $user->add_users($username, $password, $admin, $id); echo '<div id="divStatus" class="success"> New Admin Added <span class="ti-face-smile" ></span> </div> '; } } break; case 3: include_once 'administrator.php'; $obj1 = new administrator();