Guest User

Untitled

a guest
Apr 22nd, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. <?
  2.  
  3. $conn = mysql_connect("localhost","root","xxxxx");
  4. $db = mysql_select_db("users");
  5.  
  6. $username = $_post["username"];
  7. $password = $_post["password"];
  8.  
  9. $result = mysql_query("select * from users where username ='$username' and password = '$password'")
  10. or die ("Name and or password not found or matched!");
  11.  
  12. $wordked = mysql_fetch_array($result);
  13.  
  14. $username = $worked[username];
  15. $password = $worked[password];
  16. $email = $worked[email];
  17.  
  18. if($worked)
  19. echo ('You got in');
  20.  
  21. ?>
Add Comment
Please, Sign In to add comment