Advertisement
rentas

proseslogin.php

May 2nd, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 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($link, "select * from users where username='$username' and password='$password'");
  7. $chek = mysqli_num_rows($sql);
  8. if(chek>0)
  9. {
  10. header("location:list.php");
  11. }else{
  12. header("location:login.php");
  13. }
  14. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement