$query = "SELECT field1, field2 FROM table WHERE id IN (1, 2, 3, 4, 5)"
$result = mysql_query($query);
$array = mysql_fetch_assoc($result);
If there is no id#3, then $array['field1'][3] returns next result (if any).
But I need it to return 0 in that case.
So that $array should contain 5 elements, even if not all were in database.
Is it possible to do this?