I have a global [global $host,$user,$passwd,$dbname;] for connecting to database in my script and then I use mysqli_query
to perform a simple update query. There is a connection, but I keep getting this error:
mysqli_query() expects at least 2 parameters,
What am I doing wrong with handling that global with the mysqli_query? Or is this error given when there is a problem with the query itself?