include("admin/config/site-includes.php"); if($_REQUEST['type'] != "") { $_SESSION['type'] = $_REQUEST['type']; } if($_REQUEST['mode']=="login") { $email=trim($_REQUEST['email']); $pword=trim($_REQUEST['password']); $sql2="select * from tbl_user where email='$email' and password='$pword' and isActive=1"; $rs2=mysqli_query($conObj, $sql2); if(mysqli_num_rows($rs2) == 1) { $row = mysqli_fetch_array($rs2); $_SESSION["user_id"]=$row['user_id']; $_SESSION["first_name"]=$row['first_name']; $_SESSION["email"]=$row['email']; //$_SESSION["users_type"]=$row['utype']; //header("Location:my-account.php?job=change_password"); header("Location:profile.php"); } else { header("Location:login.php?err=1"); } } ?>