I have a database which feeds into a table on my webpage. I am trying to add a total for each column which has a number vavlue. I have been struggling wtih this for hours and just can't figure it out. The code I am struggling with is at line 52-54.

Obviously the name fields won't be totaled, but all the rest should be.