Originariamente inviato da satifal
Codice PHP:
... SELECT SUM(totalnumber) AS somma FROM ...
...
echo 
number_format($row->somma);