Warning
: mysql_fetch_array() expects parameter 1 to be resource, array given in
C:\phpStudy\PHPTutorial\WWW\RFBLOG\include\lib\mysql.php on line 99
下面是99号的代码
function fetch_array($query , $type = MYSQL_ASSOC) {
return mysql_fetch_array($query, $type);
mysql_fetch_array() expects parameter 1 to be resource, array given in
This error means that the first parameter of the mysql_fetch_array() function should be given to a resource, that is, the result returned by the mysql_query function, but You gave an array, you can print the $query
you passed in.