This is driving me nuts...
Ever since the php version on my server has been upgraded to ver5 I get error_log files appearing in all my sites that use databases with pages of entries like this:
PHP Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/xxxx/public_html/xxxx.php on line 278
I never had these warnings before the php upgrade. And here's what's on line 35 of xxxx.php:
29>> $SQL = " SELECT * FROM coursedescriptions WHERE coursenumber = '$coursenumber'";
30>> $retid = mysql_query($SQL);
31>> if (!$retid) { echo( mysql_error()); }
32>>
33>>
34>>
35>> while ($row = mysql_fetch_array($retid)) {
The query is totally valid, (I can run it direct in phpmyadmin without an error) the script works fine and no error messages are displayed on the page. The only problem is that I get these error files appearing which get bigger and bigger and have to be deleted occasionally as they start to take up too much space...
Any help much appreciated....
Ever since the php version on my server has been upgraded to ver5 I get error_log files appearing in all my sites that use databases with pages of entries like this:
PHP Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/xxxx/public_html/xxxx.php on line 278
I never had these warnings before the php upgrade. And here's what's on line 35 of xxxx.php:
29>> $SQL = " SELECT * FROM coursedescriptions WHERE coursenumber = '$coursenumber'";
30>> $retid = mysql_query($SQL);
31>> if (!$retid) { echo( mysql_error()); }
32>>
33>>
34>>
35>> while ($row = mysql_fetch_array($retid)) {
The query is totally valid, (I can run it direct in phpmyadmin without an error) the script works fine and no error messages are displayed on the page. The only problem is that I get these error files appearing which get bigger and bigger and have to be deleted occasionally as they start to take up too much space...
Any help much appreciated....