I have this table:

ID SUM
1 2
2 5
3 3


There is any function to give me the total of SUM column:
2+5+3=10

I can calculate them using math such as $i=$i+$row[sum] .. but I ask about function to do that auto.

Thanks...