Advertisement
Guest User

Untitled

a guest
Aug 4th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. <?php
  2.  
  3. mysql_connect("localhost","root","") or die(mysql_error());
  4. mysql_select_db("testdb");
  5.  
  6. $username = $_POST['username'];
  7. $password = $_POST['password'];
  8. $salt = 'qwerjh877234ZWTY';
  9. $hash = crypt($password, '$2$07'.$salt.'$');
  10.  
  11.  
  12. $query = "SELECT * FROM users WHERE username = '$username'" or die(mysql_error());
  13.  
  14.  
  15.  
  16.  
  17. while($row = mysql_fetch_array($query))
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement