What's wrong with mysqli::get_result?

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

    I´m guessing it´s the line below that, change:

    $info = $result->fecth_array(MYSQLI_ASSOC);
    

    to:

    $info = $result->fetch_array(MYSQLI_ASSOC);
    

提交回复
热议问题