supplied argument is not a valid MySQL result resource

前端 未结 4 1171
心在旅途
心在旅途 2020-12-04 04:12

I have developed a small CMS on my local WAMP machine.

Once I have exported my project on to the hosting, the following problem shows up

Warn

4条回答
  •  -上瘾入骨i
    2020-12-04 04:50

    The SQL query has not finished correctly. You most likely uploaded the script, but have either not uploaded the database, or have wrong database credentials.

    Hint You can get very good and descriptive error messages when you put the following code after a failing mysql_query statement:

    if (mysql_error()) {
        die(mysql_error());
    }
    

提交回复
热议问题