
Roxy: Thanks for the advice.
I fixed it.
I don't know what was wrong, but as opposed to running a query to check both the password and user name in the DB separately, I just had one query line check both of them in one, like so:
Code:
$userName = $_POST['userName'];
$userPass = $_POST['userPass'];
DBConnect("contraba_users");
$sqlCheckUser = mysql_query("SELECT userName,userPass FROM `users` WHERE `userName` = '$userName' AND `userPass` = '" . md5($userPass) . "' LIMIT 1");
I hate this stuff sometimes.