salve ho un dubbio

ho questo array

codice:
$chart[ 'mesi' ] = array ( "GEN", "FEB", "MAR", "APR", "MAG", "GIU", "LUG", "AGO", "SET", "OTT", "NOV", "DIC", "GEN" );
invece di definirlo a priorio vorrei prelevare dal database le etichette dei mesi

codice:
$result = mysql_query("select nome from mesi");
while($array=mysql_fetch_array($result)){
}
come posso fare ad associare il risultato della query alla variabile $chart[ 'mesi' ] ???