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'");
Errors:
Notice: Undefined variable: mysqli in C:\wamp\www\SICS\home.php on line 5
Fatal error: Call to a member function query() on a non-object in C:\wamp\www\SICS\home.php on line 5