What's wrong with mysqli::get_result?

前端 未结 6 1961
情话喂你
情话喂你 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:25

    The manual page doesn't give any clear information on which minimum version of PHP is needed for get_result() to work:

    (No version information available, might only be in SVN)

    I don't know the background to this, but it may simply not be available in your PHP version.

    You could use fetch() instead.

提交回复
热议问题