This question already has an answer here:
Im trying to convert a project of mine from mysql to mysqli but it seems to give me a error
Warning: mysqli_query() expects at least 2 parameters, 1
this is my database connection
$mysqli = new mysqli();
$mysqli->connect('localhost', 'root', '', 'myscript');
this is the query
$sql = mysqli_query("SELECT * FROM settings WHERE id='1'") or die (mysqli_error());
$results = mysqli_fetch_array($sql);
if anyone can tell me how to fix this error i will be grateful. thanks in advance.
</div>