Guest User

Untitled

a guest
Apr 23rd, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. <?
  2.  
  3. $conn = mysql_connect("localhost","root","chases");
  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. $worked = mysql_fetch_array($result);
  13.  
  14.  
  15. if($worked)
  16. echo ('You got in');
  17.  
  18. ?>
Add Comment
Please, Sign In to add comment