Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result

后端 未结 6 846
耶瑟儿~
耶瑟儿~ 2020-11-21 05:35

I get the error when trying to run this:

query(         


        
6条回答
  •  青春惊慌失措
    2020-11-21 05:54

    This error means your query failed. mysql_query() returns false if an error occurred, you are then passing false to mysql_fetch_array() which is triggering the error message.

    Your query could be failing due to a missing/wrong table or field. To see the detailed error, print out the result of mysql_error().

    The mysql_* library is deprecated. It is recommended to upgrade to MySQLi or PDO.

提交回复
热议问题