Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $con=mysqli_connect("*****", "****", "***", "****");
- if(isset($_POST['login'])){
- $email= mysqli_escape_string($con, $_POST['Email']);
- $password= mysqli_escape_string($con, $_POST['Password']);
- $select_user= "SELECT * FROM users WHERE Email='$email' AND Passwords='$password'";
- $run_user= mysqli_query($con , $select_user);
- $check_user= mysqli_num_rows($run_user);
- if($check_user > 0) {
- $_SESSION['Email'] = $email;
- header("location:account.php");}
- else{echo "wrong username or password";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement