Home  >  Q&A  >  body text

Can you please help me solve this error message? Thank you~!


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);


phpcn_u108134phpcn_u1081342369 days ago1000

reply all(1)I'll reply

  • 好人二狗

    好人二狗2018-03-29 12:10:37

    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.

    reply
    0
  • Cancelreply