This is still not working! I have added echo tags to view the value of the $result variable and $num_results variables and am getting a Resource id #2 value for the $result variable and a constant 0 for the $num_results variable. What does the Resource id #2 thing mean?!? I'm not sure what the problem is. Can anyone help? Here is my code.
$sql = "SELECT Name, Password FROM RegUsers WHERE Name='$use' AND Password='$pass'";
$result = mysql_query($sql) or die(mysql_error());
//testing the result variable for value which ends up being resource id #2
echo "$result<br><br>";
$num_results = mysql_num_rows($result);
//checking the num_results for value which is constantly 0
echo "$num_results";
if ($num_results == 1)
{
echo "<font face='verdana' color='#FFFFFF' size='2'><a href='bulletin.php'>Click here</a> to continue.";
return false;
}
if ($num_results == 0)
{
echo "<font face='verdana' color='#FFFFFF' size='2'>Invalid username or password, <a href='index.php'>try again</a>!";
return false;
}