amtpaid, prevbal, latechg, etc. are database fields that are: decimal 8,2 and may be 0.00 or more:
I'm asking for the correct way to code these variables to reflect their value
Obviously I'm resetting the values of the fields to 0 since after update, no matter the amtpaid,
prevbal, latechg, etc. are always 0.00
>
What I have tried:
and been advised:
$amtpaid = (double)'amtpaid';,
$amtpaid=$row['amtpaid'];,
$amtpaid = (int)'amtpaid';
$amtpaid = 0;