Hello,
Can anyone tell me why this query may not be working? I keep getting the "I can not run query." from the if statement.
Here is my code:
//set variable query
$query = " SELECT count (*)
FROM tblAuth
WHERE userName = '$userName' and
password = '$pass'";
//query db
$result = mysql_query($query);
if(!$result)
{
echo 'I can not run query.';
exit;
}
Thanks for all your help.