This topic is locked

Help needed

10/20/2010 12:32:51 PM
PHPRunner General questions
C
ColeSmith author

i have a little problem which is

  1. i have table called payment with the following text fields

    -----Cost1

    -----Cost2

    -----Cost3

    ----- Amount total {it calculates the cost fields and store the total amount here}

    ------Amount Paid {}

    ------Balance { it subtract the amount paid from the amount total and store the balance here}
    My problem is this hw to insert php code to do this calculation using the php runner and also to make sure the value entered in amount paid field is not greater than amount total. Am using the PHP RUNNER 5.2

Sergey Kornilov admin 10/20/2010

Here is how you can calculate total right on Edit/Add pages:

http://xlinesoft.com/phprunner/docs/how_to_calculate_values_on_the_fly.htm