What's wrong with mysqli::get_result?

前端 未结 6 1964
情话喂你
情话喂你 2020-12-07 02:40

I have the following code:

$postId = $_GET[\'postId\'];
$mysqli = new mysqli(\'localhost\', \'username\', \'database\', \'name_db\');
mysqli_report(MYSQLI_RE         


        
6条回答
  •  日久生厌
    2020-12-07 03:14

    As mentioned in php documentation mysqli_stmt::get_result, this method is supported since PHP 5.3.0.

    And it is stated in the user notes section that:

    This method requires the mysqlnd driver. Othervise you will get this error: Call to undefined method mysqli_stmt::get_result()

提交回复
热议问题