This is how I get one record with MySQLi:
$result = $db->query(\"...\"); $image = $result->fetch_object();
Now I need to get the comm
Yes. The mysqli_result class provides a fetch_all method to do this. However, that method will only return associative or numeric arrays (or a hybrid), not objects.