Fatal error: Call to a member function fetch_assoc() on null on line 9

后端 未结 2 1727
生来不讨喜
生来不讨喜 2021-01-29 14:54

I don\'t understand

Не понимаю, в чем заключается ошибка

query(\"SET         


        
2条回答
  •  难免孤独
    2021-01-29 15:33

    you can try like this....you have to fetch that array and you can print....

    query("SET NAMES 'utf-8'");
    $result_set= mysqli_query($mysqli,"SELECT * FROM products");
    $row=mysqli_num_rows($result_set);
    echo $row;
    while($row=mysqli_fetch_array($result_set))
    {            
    print_r($row);
    }
    ?>
    

提交回复
热议问题