PHP Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given
mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given
$res=mysqli_query($conn,$query);
$row=mysqli_fetch_array($res, MYSQLI_BOTH);
mysqli_free_result($res);
the same thing is still happening in mysqli, but for some reason php is throwing errors even though, that is exactly what the PHP developers say to do it on their own pages.
Why is it throwing warnings when that way works, and it's exactly what PHP says to do it.