PHP Warning: mysqli_fetch_assoc() expects exactly 1 parameter, 3 given in

前端 未结 2 1178
难免孤独
难免孤独 2021-01-15 18:47

I get this error, I tried going through other similar threads but it didn\'t help.

here is php

$host = \"http://www.domain.com\";
$hostname = \"local         


        
2条回答
  •  一生所求
    2021-01-15 19:19

    Syntax mysqli_fetch_assoc is:

    array mysqli_fetch_assoc ( mysqli_result $result )
    

    Try (for PHP >=5.4):

    $hits = mysqli_fetch_assoc($result)['hits'];
    

提交回复
热议问题