0

Possible Duplicate:
mysql_fetch_array() expects parameter 1 to be resource, boolean given in select

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /var/www/stalker_portal/server/lib/database.class.php on line 108 Fatal error: Call to a member function getValueByName() on a non-object in /var/www/stalker_portal/server/lib/func.php on line 90

This is Line 108 '$this->total_rows = mysql_num_rows($this->result);

Community
  • 1
  • 1
  • There are many many questions which explain the source of that error. Look over at the right side of the screen to the "Related" section. Your query failed, so you have no result resource to call `mysql_num_rows()` on. – Michael Berkowski Sep 07 '12 at 00:24

1 Answers1

0

The problem is with $this->result. The error is telling you that a valid query result was not returned (result == FALSE).

Peter Gluck
  • 8,070
  • 1
  • 37
  • 35