Codice PHP:
while($row mysql_fetch_array($result)){
$dati_array[] = $row["temperatura"];