Hi,
I'm getting the error Warning: mysql_numrows() expects parameter 1 to be resource, boolean given in C:\wamp\www\******\include\Database.php on line 294 when I try to run this
function calcNumActiveUsers()
{
$query = "SELECT * FROM ".TBL_ACTIVE_USERS;
$result = $this->query($query); //just uses mysql_query
var_dump($result);
$this->num_active_users = mysql_numrows($result);
}
As far as I can tell var_dump($result) should not be telling me that $result is true since I am running a select query. I'm getting this error on each function I call that accesses the database. Can anyone tell me what I'm doing wrong?