PHP and MySQL error: Object of class mysqli_result could not be converted to string

后端 未结 2 1402
小鲜肉
小鲜肉 2020-12-17 06:00

I am getting the error:

Object of class mysqli_result could not be converted to string.

Code:



        
2条回答
  •  盖世英雄少女心
    2020-12-17 06:44

    $result is a result object. From thje manual for mysqli_query():

    Returns FALSE on failure. For successful SELECT, SHOW, DESCRIBE or EXPLAIN queries mysqli_query() will return a mysqli_result object. For other successful queries mysqli_query() will return TRUE.

提交回复
热议问题