I am getting this error message while browsing certain site:
Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in / .....
What is this error?
<?PHP
$sql = 'some query...';
$result = mysql_query($q);
if (! $result){
throw new My_Db_Exception('Database error: ' . mysql_error());
}
while($row = mysql_fetch_assoc($result)){
//handle rows.
}
?>
CyberFreak wrote:It is a coding error... really those debug/warnings should not be visible to visitors (well it is good practice not to have them visible anyway) but it is nothing you can fix if you don't run the site. Maybe email the site admin(s) to notify them but other than that, ignore it.
CyberFreak wrote:It is a coding error... really those debug/warnings should not be visible to visitors (well it is good practice not to have them visible anyway) but it is nothing you can fix if you don't run the site. Maybe email the site admin(s) to notify them but other than that, ignore it.
Return to CGT - Computers, Gaming & Technology
Users browsing this forum: No registered users and 1 guest