Possible Duplicate:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result
When I checked my site log error file I found this error:
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/mysite/public_html/include/config.php on line 17
The line 17 is:
$rows=mysql_fetch_assoc($query);
And, this line is inside a function:
function get_val($val,$table,$where,$return){
$query=mysql_query("select $val from $table $where");
$rows=mysql_fetch_assoc($query);
return $rows[''.$return.''];
mysql_free_result($query);
}
There is no error in the browser but in the log_file error I find this message.