Uncaught Error: Cannot use object of type mysqli_result as array mysql php code example
Example: Uncaught Error: Cannot use object of type mysqli_result as array
$query = "SELECT 1";
$result = $mysqli->query($query);
$followingdata = $result->fetch_assoc()