Advertisement
mybank997

login.php

Jul 24th, 2018
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. <?php
  2.  
  3. include("koneksi.php");
  4.  
  5. if(isset($_POST["username"]) && isset($_POST["password"]))
  6. {
  7.  
  8. $email=$_POST["username"];
  9.  
  10. $password=$_POST["password"];
  11.  
  12. $result = mysqli_query($conn, "select * from user_info where username='$username' && password='$password'");
  13.  
  14. if(mysqli_num_rows($result) > 0)
  15. {
  16. echo "Login";
  17. exit;
  18. }
  19. else
  20. {
  21. echo "invalid";
  22. exit;
  23. }
  24. }
  25.  
  26.  
  27. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement