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
Syntax mysqli_fetch_assoc is:
array mysqli_fetch_assoc ( mysqli_result $result )
Try (for PHP >=5.4):
$hits = mysqli_fetch_assoc($result)['hits'];