This topic is locked

two total sums subtract

6/30/2009 4:46:23 AM
PHPRunner General questions
S
stonfon author

I need Something like this:
+-------+------+---------+

| id | soll | haben |

+-------+------+---------+

| 1 | 5 | 4 |

| 2 | 7 | 3 |

| 3 | 9 | 4 |

| 4 | 5 | 2 |

+-------+------+---------+

| | total| total |

| | 26 | 13 |

--------------------------
total_soll(26)-total_haben(13) = new field(13)
how can i do that?

Please help me
thanks

J
Jane 7/1/2009

Hi,
use List page: Before display event on the Events tab for this purpose:

global $totals;

echo $totals["soll"]-$totals["haben"];