codice:
$res = mysql_query($sql_query);

do while($row = mysql_fetch_array($res)) 
    $risultato[] = $row;
Dovrebbe bastare credo...