Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $username = $_POST['username'];
- $password = $_POST['password'];
- if ($username && $password)
- {
- $connect = mysql_connect("localhost", "root", "7c8wc3") or die("Could not connect!");
- mysql_select_db("phplogin") or die ("could not find database");
- $query = mysql_query("SELECT * FROM users WHERE username='$username'");
- $nurows = mysql_num_rows($query);
- ech $numrows;
- }
- else
- die("Please enter a username and password");
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement