Advertisement
Guest User

Untitled

a guest
Feb 16th, 2016
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. <?php
  2.  
  3. require_once '../includes/configuration.php';
  4.  
  5. $userName = $_POST["user-name"];
  6. $userPass = $_POST["user-pass"];
  7.  
  8. $SQL = mysqli_query($con, "SELECT Usuario, Senha FROM administradores WHERE Usuario='$userName' AND Senha='$userPass' ");
  9.  
  10. if (mysqli_num_roms($SQL) != 0){
  11.  
  12. echo "logado";
  13.  
  14. }else{
  15.  
  16. echo "Login incorreto";
  17.  
  18. }
  19.  
  20. ?>
  21.  
  22. if (mysqli_num_rows($SQL) != 0) {
  23. echo "logado";
  24. } else {
  25. echo "Login incorreto";
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement