This topic is locked

Sum fields help

4/23/2011 12:45:00 PM
PHPRunner General questions
T
thunder author

Hello. I have 2 questions.

  1. How can i make to show in list page a sum of many fields?

field1 field2 field3 field4



30 40 20 30

20 50 60 40

50 20 60 25

70 80 10 30



Total: 635


2) And if i want to work with php variables?
Before add or edit record
$myvariable = ($field1 + $field2) * $field3; //where i can find the variable names?

insert $myvariable to a field in my database.
Thanks for help.

P
procheck 4/25/2011

You can check out the The Fields order and totals page in the manual.

To access your table variables, read the Events section of the manual.