Hi,
I believe I have seen this posted somewhere before but I constantly receive the following errors
PHP Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/*****/public_html/includes/database.php on line 17
PHP Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/*****/public_html/includes/database.php on line 21
PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/*****/public_html/includes/database.php on line 26
If I remember correctly it was to do with spaces in config.php file, I have checked this file and cannot see any spaces at the top or bottom of this file.
Any idea what else would cause this error?
Thanks
Richard
Hi Richard,
Spaces in the config files is normally the cause of "Cannot send header information..." rather than database errors.
As there is an error reported by line 17 - the call to mysql_select_db() - this would indicate a temporary database problem rather than a specific SQL error; so if your site is currently working fine it was almost certainly just a transient fault and nothing to worry about...
Cheers,
David.
--
PriceTapestry.com