ciao prova così:

Codice PHP:
$select 'select data,valore from tabella'
$sql mysql_query($select) or die (mysql_error()); 
$myarray = array(); 
while(
$result mysql_fetch_array($sql))

    
$myarray[$result[data]] = $result['valore'];