My connection
$db = mysql_connect('localhost','root','','');
mysql_select_db('database', $db);`
Now i have changed to this
$db = mysqli_connect('localhost','root','','');
mysqli_select_db('database', $db);
but it is not working. I have changed all my mysql functions to mysqli function, just added an 'i'; mysql to mysqli. Is it not enough?
Error is:
mysqli_select_db() expects parameter 1 to be mysqli
and
mysqli_query() expects at least 2 parameters, 1 given ..
What to do?