علت ارور mysqli_query() expects parameter 1 to be mysqli, string given in
https://lamtakam.com/qanda/4092/علت-ارور-mysqliquery-expects-parameter-1-to-be-mysqli-string-given-in 2سلام دوستان وقت بخیر ممنون میشم بگید مشکل این کد چیه
$db="my_site";
$con=mysqli_connect("localhost","root","","my_site");
$ins = "INSERT INTO users (username,password,phone_number,job ) VALUES ('$h1', '$h2', '$h3','$h4')";
$query_sen = "SELECT * FROM users";
$query = mysqli_query($db , $query_sen);
if($query){
while($fetch = mysqli_fetch_assoc($query)){
if($h2 !== $fetch['password'] || $h1 != $fetch['username'] ){
echo "-";
}elseif($h2 === $fetch['password'] && $h1 == $fetch['username']){
echo "+";
}
}
}