i usually get this when i have a syntax error in my php code, like a mis-spelled table name, and what-not.
mysql_num_rows will have an argument in it that matches a query you ran.
like this
Code:
$query = mysql_query("SELECT `name` FROM `customers` WHERE `age` > 35 ");
$how_many = mysql_num_rows($query); // tells how many customers are over 35 years old
Just check those lines in the script in the error output message and make sure that everything is set up right.