Codice PHP:
$array = array();
$query mysql_query("select id, session, nome from tabella_utenti");
while (
$row mysql_fetch_assoc($query) ) {
$array['id'][] = $row['id'];
$array['session'][] = $row['session'];
$array['nome'][] = $row['nome'];
}
echo 
'<pre>';
print_r($array);