You are here:  » my sql warning


my sql warning

Submitted by shopinn on Tue, 2013-10-15 04:28 in

sorry david also when i install
i get following errors
the only way to stop it is to set display errors off

Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/shopinnc/public_html/includes/database.php on line 27

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /home/shopinnc/public_html/includes/database.php on line 32

regards
dave

Submitted by support on Tue, 2013-10-15 08:11

Hi Dave,

That sounds like it may be related to a featured products modification. To find out the actual cause, enable database debug mode by changing line 6 in config.advanced.php as follows:

  $config_databaseDebugMode = TRUE;

That should reveal the actual MySQL error that causes the warning. If you're not sure from the message displayed where the problem lies, let me know what is displayed and I'll check it out for you...

Cheers,
David.
--
PriceTapestry.com