Object of class mysqli_result could not be converted to string in

前端 未结 5 2241
遥遥无期
遥遥无期 2020-11-22 13:24

I am getting the error:

Object of class mysqli_result could not be converted to string

This is my code:

$result = mys         


        
5条回答
  •  南方客
    南方客 (楼主)
    2020-11-22 13:48

    The query() function returns an object, you'll want fetch a record from what's returned from that function. Look at the examples on this page to learn how to print data from mysql

提交回复
热议问题