Advertisement
Guest User

Untitled

a guest
Apr 1st, 2016
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. <?php
  2. $db = mysqli_connect("localhost", "csgofkyf_mads", "oA?pDtqrV4AwQ", "csgofkyf_steamlogin");
  3. if (mysqli_connect_errno())
  4. {
  5. echo "Failed to connect to MySQL: " . mysqli_connect_error();
  6. }
  7.  
  8. /**
  9. session_start();
  10. $username = $POST['name'];
  11. $password = $POST['password'];
  12.  
  13. if($username&&$password)
  14. {
  15. $connect = mysql_connect("http://www.csgo.supply","oA?pDtqrV4AwQ","") or die("couldnt connect to the database");
  16. mysql_select_db("csgofkyf_steamlogin") or die ("Couldnt find database");
  17.  
  18. $query = mysql_query("SELECT * FROM users_steam WHERE username='$username'");
  19.  
  20. $numrows = mysql_num_rows($query);
  21.  
  22. if($numrows!==0)
  23.  
  24. {
  25. while($row = mysql_fetch_assoc($query))
  26. {
  27. $dbusername $
  28. $
  29. }
  30. }
  31.  
  32.  
  33. }
  34.  
  35. **/
  36. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement