if($roles =='admin') { header("location: admin/index.php?logid=$res_id"); }else if { $_SESSION['id'] = $res_id; header("location: admin/indexEmp.php?logid=$res_id"); } else ($curr_status=='Deactive') { $message = "Sorry $user_email, your account is temporarily deactivated by the admin."; }