Fai le sum in un'unica query


SELECT SUM(g) as tot_g,SUM(v1) as tot_v1,eccetera FROM $tabgame