Warning: mysqli_query() expects at least 2 parameters, 1 given in C:\wamp64\www\project\plusweb\pluspro_admin\config.php on line | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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; } }

17th May 2020, 10:41 PM
Plusproy yousaf
Plusproy yousaf - avatar
1 Answer
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);
17th May 2020, 11:13 PM
Ore
Ore - avatar