I have the following script:
$user = $_REQUEST['username'];
$pass = $_REQUEST['pass'];
$password = md5($pass);
include('connection.php');
$query = "SELECT * FROM `members` WHERE `Username` = $user;";
echo('Logging in... Please wait....<br>');
echo($query.'<br>');
$result = mysql_query($query, $dbc) or die('<b>Unable to Find User</b><br>'.$user);
When I call the page to try and login, for some odd reason I get the following output:
Logging in... Please wait....
SELECT * FROM members WHERE Username = brett2;
Unable to Find User
brett2
I have checked the passwords, and they match. The user is in the database. Everything is there, but I just can't get the script to see it.
Any ideas?
Thanks for the help.
~Brett