Fatal error: Call to undefined method mysqli_stmt::fetch_array()

前端 未结 1 796
北恋
北恋 2020-11-29 12:50

in this code i get the error: Fatal error: Call to undefined method mysqli_stmt::fetch_array()

What is the problem?

$search= \"player\";

($sql = $db         


        
相关标签:
1条回答
  • 2020-11-29 13:20

    Using prepared statements there is no fetch_array(). Use mysqli_stmt::fetch() instead or to fetch multiple records use mysqli_stmt::fetchAll()
    Check the manual: mysqli_stmt::fetch() or mysqli_stmt::fetchAll()

    0 讨论(0)
提交回复
热议问题