This code is looping through an array of what is in the database, that searches the username variable against the Usernames in the database, when its found one it should break from the if else statement.
<?php
while($row = mysql_fetch_array($resultSet, MYSQL_ASSOC))
{
if($username = $row['User_Name']){
echo "username found";
echo "Logged in as ", $Username;
break;
}
else
{
echo "not yet";
}
}
mysql_close($conn);
?>
</div>
I am encoutering this error:
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in H:\STUDENT\S0190204\GGJ\Logon-process.php on line 36