0
Warning: mysqli_query() expects at least 2 parameters, 1 given in C:\wamp64\www\project\plusweb\pluspro_admin\config.php on line
function qry_run($qry){ $QrY = mysqli_query($qry); if ($QrY) { return $QrY; }else{ echo mysqli_error(); die; } }
1 Antwort
0
You have to connect to the database with mysqli_connect();
https://www.w3schools.com/php/func_mysqli_connect.asp
mysqli_query() takes at least 2 parameters. The connection instance and the query string.
In practice
$conn = mysqli_connect(.....);
$result = mysqli_query($conn, $qry);