I have this code below. And I have this error:
Warning: mysqli_query() expects at least 2 parameters, 1 given
=========================================================================
$qry = mysqli_query("select * from tbl_users where usr='$unm' and pwd='$pwd'");
$rec_count = mysqli_num_rows($qry);
if($rec_count == 1){
while($row = mysqli_fetch_array($qry)){
echo "Welcome " . ucfirst($row['fname']) . "!";
}
}