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

前端 未结 4 511
遇见更好的自我
遇见更好的自我 2021-01-22 12:50

Hell there when i try and connect to pull thing out of the database i get the following error:

Warning: mysql_fetch_object(): supplied argument is not a valid My         


        
4条回答
  •  囚心锁ツ
    2021-01-22 13:14

    Want to use SELECT *

    You can also use

    mysql_query($sql, $con) or die("Error in $sql:" . mysql_error($con));
    

    If you don't want to use die() then you can use echo to see what the error was and help debug the application at least.

提交回复
热议问题