so i've got a table that looks something like this:
+-------+---------+---------+---------+ | NAME | FIELD_1 | FIELD_2 | FIELD_3 | +-------+---------+---------+---------+ | BOB | 1 | 1 | 1 | +-------+---------+---------+---------+ | BOB | 2 | 2 | 2 | +-------+---------+---------+---------+ | SAM | 3 | 3 | 3 | +-------+---------+---------+---------+ | SAM | 4 | 4 | 4 | +-------+---------+---------+---------+ | JOE | 5 | 5 | 5 | +-------+---------+---------+---------+ | JOE | 6 | 6 | 6 | +-------+---------+---------+---------+
i have a simple php script that prints that table out de facto, no problem
what i would like to do is print out the column sums for each NAME
i.e.:
+-------+---------+---------+---------+ | NAME | FIELD_1 | FIELD_2 | FIELD_3 | +-------+---------+---------+---------+ | BOB | 3 | 3 | 3 | +-------+---------+---------+---------+ | SAM | 7 | 7 | 7 | +-------+---------+---------+---------+ | JOE | 11 | 11 | 11 | +-------+---------+---------+---------+
how do i do this4/10/2006 10:39:27 PM |