I know that the expression mysql
has been deprecated, so I'm trying to use the expression mysqli
, but every time I try it shows me a syntax error!
example:
$buscaDados = mysqli_query("SELECT * FROM usuario");
Generate this error:
Warning: mysqli_query () expects at least 2 parameters
How do I fix this error?