Im trying to convert mysql query to mysqli but it doesnt work...why?
From:

```
mysql_query("UPDATE views SET views=views+1 WHERE viewID='1'");

```

To:

```
$q1 = $mysqli->query("UPDATE views SET views=views+1 WHERE viewID='1'");

```

> 
> Notice: Undefined variable: mysqli in
> 
> 
> Fatal error: Call to a member function query() on a non-object
> 
> 
> 

When I do

```
mysqli_query("UPDATE views SET views=views+1 WHERE viewID='1'");

```

> 
> mysqli\_query expects two parameters
> 
> 
>