Object of class mysqli_result could not be converted to string in

前端 未结 5 2228
遥遥无期
遥遥无期 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 14:07

    Before using the $result variable, you should use $row = mysql_fetch_array($result) or mysqli_fetch_assoc() functions.

    Like this:

    $row = mysql_fetch_array($result);
    

    and use the $row array as you need.

提交回复
热议问题