Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <title>password test</title>
- <?php
- echo "test";
- $con = mysql_connect("localhost", "omitted", "omitted");
- if (!$con) { die('error connecting'); }
- mysql_select_db("webapp_test", $con);
- $query="select userid from Users where user='$_GET["user"]' and password='$_GET["password"]'";
- /*
- $result = mysql_query($query, $con);
- $rowcount=mysql_num_rows($result);
- if ($rowcount != 0) { header("Location: success.php"); }
- else { die('Incorrect username and password') }
- */
- ?>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement