I\'m looking for the best way to check and see if any results were returned in a query. I feel like I write this part of code a lot and sometimes I get errors, and sometimes
$result = $mysqli->query($query); if($result){ perform action }
this is how i do it, you could also throw an else there with a die...