Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include_once "connect.php";
- $username = $_POST['username'];
- $password = $_POST['password'];
- if ($_POST['systemCall'] == "checkLogin") {
- $sql = "SELECT * FROM users WHERE username='$username' AND password='$password'";
- $query = mysql_query($sql);
- $login_counter = mysql_num_rows($query);
- if ($login_counter > 0) {
- while ($data = mysql_fetch_array($query)) {
- $userbio = $data["user_bio"];
- print "systemResult=$userbio";
- }
- } else {
- print "systemResult=The login details dont match our records.";
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement