My install of Drupal (6.2) is spitting out the following error:

warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/www/bennysbuddies.com/htdocs/includes/common.inc(1537) : eval()'d code on line 10.

The site seems to be functioning correctly. What could this error be and how might I fix it?

Comments

gpk’s picture

You have a block (or possibly a node) that contains PHP code that has an error on line 10.

gpk
----
www.alexoria.co.uk

stephtek’s picture

Hmm... how do I know which one?

gpk’s picture

You don't, but there probably aren't that many blocks that have PHP code in the content or in the visibility settings. Try disabling some to check which is causing the problem.

gpk
----
www.alexoria.co.uk

sanjrani’s picture

In drupal 6 mysql_query=db_query and mysql_num_result=db_result and mysql_fetch_array=db_fetch_array