Advertisement
Guest User

Segíts

a guest
Jul 4th, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. <?php
  2. $con = mysqli_connect("localhost","TITOK","TITOK","classmch_wp");
  3. $username = $_GET['username'];
  4.  
  5. $password = $_GET['password'];
  6.  
  7. $sel_user = "select * from players where username=’$username’ AND password=’$password'";
  8.  
  9. $run_user = mysqli_query($con, $sel_user);
  10.  
  11. $check_user = mysqli_num_rows($run_user);
  12. if($check_user<0)
  13. {
  14. echo "1";
  15. }
  16. else
  17. {
  18. if(empty($uname) or empty($upass)) {
  19. echo "Hiányzó adatok!";
  20. }else {
  21. echo "2";
  22. }
  23. }
  24. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement