You are here:  » warning: mysql_fetch_array

Support Forum



warning: mysql_fetch_array

Submitted by mediadream on Sat, 2011-02-05 17:17 in

I get this error when the database cant find any hits.
Is there a way of not showing this and replace this message with something like:

"No result found, please try again"

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/web76132/domains/public_html/includes/database.php on line 27

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/web76132/domains/public_html/includes/database.php on line 32

Warning: Cannot modify header information - headers already sent by (output started at /home/web76132/domains/public_html/includes/database.php:27) in /home/web76132/domains/public_html/html/header.php on line 6

Thanks

Submitted by support on Sat, 2011-02-05 18:01

Hi,

Could you enable database debug mode by setting $config_databaseDebugMode = TRUE; at line 6 of config.advanced.php then cause the error again and more details information should be displayed.

If you're not sure from the output where the problem lies let me know what is displayed and I'll check it out...!

Cheers,
David.
--
PriceTapestry.com