Hey all. Maybe it's just sleep deprivation but I'm getting this error...
Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in /var/www/helpdesk/admin/login.php on line 10
and here's the query:
$login_query = "SELECT * FROM `staff` WHERE `username` = '".$username."'";
$login_query_result = mysql_query($login_query);
$info = mysql_fetch_assoc($login_query_result); //this is line 10
Using PHP on Apache 2 running on Ubuntu Server