Ciao, innanzitutto grazie per la risposta
Ho un altro problema, credo con l'array...

Codice PHP:
require_once("gdgraph.php");
$gdg = new GDGraph(500,300,"Vendite");

$arr = array();

$query "create view vendite_utenti (id_fattura, utente, importo, data)
    AS
    SELECT F.id_fattura, O.user_agente, F.dare, F.data_emissione_fattura
    FROM fatture_vendita As F JOIN ordini_clienti AS O ON F.id_ordine=O.id_ordine
    WHERE F.data_emissione_fattura IS NOT NULL"
;
    
mysql_query($query$db) or die(mysql_error());
    
$query "SELECT utente,SUM(importo) AS importo
          FROM vendite_utenti WHERE data>='2008-06-01' 
          AND data<'2008-09-01' 
          GROUP BY utente"
;
$result mysql_query($query$db);
while (
$row mysql_fetch_array($result))

  
$arr = Array(
      
$row['utente'] => Array($row['importo'],123,255,200)
            );
}

$query "DROP view vendite_utenti";
mysql_query($query$db);
 
$gdg->pie_graph($arr); 
Praticamente quando sono nel while e vado ad eseguire l'istruzione $arr = ..., credo che mi sovrascrive le informazioni che prendo dalla query, perchè quando poi vado a stampare il grafico, ottengo solo l'ultimo utente (praticamente la torta non viene suddivisa ma assegnata tutta all'ultimo utente presente nel DB).
Ho provato a vedere gli array nelle guide, ma sinceramente non sono riuscito a trovare qlc che facesse al mio caso...
Cosa sbaglio??

Ancora grazie!