OH!
I didn't read your question all the way.
+=)
I do it my way, thank you.
To answer your question, no there is not a predefined function.
The code you want would be like:
$result = mysql_query($dbi, $query);
while ($row= mysql_fetch_assoc($result)) {
$mydata[]= $row;
}
This will give you all the rows in an multidimesional(sp) array.