prova così:
codice:
while ($row = mysql_fetch_array($dati))
{

$a[] =array($row[0] => $row[1]) ;

}