Advertisement
Guest User

Untitled

a guest
May 7th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. <?php
  2. //echo "heyyy";
  3. $host="127.0.0.1";
  4. $user="root";
  5. $password="";
  6. $db="fantacalcio";
  7.  
  8. $link = new mysqli($host,$user,$password,$db);
  9. if($link->connect_error){
  10. die("errore di connessione: ".$link->connect_error);
  11. }
  12.  
  13.  
  14. if($_POST){
  15. $uname=$_POST['username'];
  16. $password=$_POST['password'];
  17.  
  18. $sql="select * from utente where user_='".$uname."' AND password_='".$password."' limit 1";
  19.  
  20. $result=$link->query($sql);
  21.  
  22. if($result->num_rows == 1)
  23. {
  24. echo "HHHHHEEEEEEEEIIIIIIIIII";
  25.  
  26. exit();
  27. }
  28. else
  29. {
  30. echo "rrrccodddiooo";
  31. exit();
  32. }
  33. }
  34. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement