Advertisement
urutehe1

proseslogin

May 24th, 2019
1,384
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.33 KB | None | 0 0
  1. <?php
  2. include 'koneksi.php';
  3. $username = $_POST['username'];
  4. $password = $_POST['password'];
  5.  
  6. $sql = mysqli_query($connect, "select * from user where username= '$username' and password= '$password'");
  7. $check = mysqli_num_rows($sql);
  8.  
  9. if($check>0)
  10. {
  11.     header("location:index.html");
  12. }else{
  13.     header("location:login.php");
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement