Advertisement
Guest User

Untitled

a guest
Aug 19th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. <html>
  2.  
  3. <title>password test</title>
  4.  
  5. <?php
  6.  
  7. echo "test";
  8.  
  9. $con = mysql_connect("localhost", "omitted", "omitted");
  10. if (!$con) { die('error connecting'); }
  11.  
  12.  
  13. mysql_select_db("webapp_test", $con);
  14.  
  15.  
  16. $query="select userid from Users where user='$_GET["user"]' and password='$_GET["password"]'";
  17. /*
  18. $result = mysql_query($query, $con);
  19.  
  20. $rowcount=mysql_num_rows($result);
  21.  
  22. if ($rowcount != 0) { header("Location: success.php"); }
  23. else { die('Incorrect username and password') }
  24. */
  25. ?>
  26.  
  27. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement