How to add and write other field amounts to a single field |
11/16/2008 8:05:49 PM |
PHPRunner General questions | |
![]() Is this page still accurate when coding with PHPR Version 5? |
|
C
|
chaintm 11/16/2008 |
your example would work as well, you got the idea, the decimal really comes down to what you have it set on in your database , using math here for math such as $value[cost]*.0675 will ofcourse multiply my cost by .0675 and give the return decimal on whatever I set the database decimal at. Most are set to 2.
|
![]() |
bbarker author 11/16/2008 |
---I''m struggling with the simple concept of how to get two decimal variables added together and then saved to a blank third variable. |
C
|
chaintm 11/17/2008 |
you need to define... |
C
|
chaintm 11/17/2008 |
oh I should mention with that all done in the before record, I then finalize in the after record event the following.. |
![]() |
bbarker author 11/17/2008 |
Almost there --- |
C
|
chaintm 11/18/2008 |
your value total (balance) is tagged wrong... Use " not ', if that is not it let me know and post full code. |
T
|
thesofa 11/18/2008 |
just wondering if you need to store the balance in the table, usual practice is never to store a value that you can calculate on the fly? |