I am using this code, but I don\'t understand how to check if the query returns zero rows. How can I check that?
$results = $mysqli->query(\"SELECT ANNOUN
if array is look like this [null] or [null, null] or [null, null, null, ...]
you can use implode:
implode is use for convert array to string.
$con = mysqli_connect("localhost","my_user","my_password","my_db");
$result = mysqli_query($con,'Select * From table1');
$row = mysqli_fetch_row($result);
if(implode(null,$row) == null){
//$row is empty
}else{
//$row has some value rather than null
}