Quote:
Hi,I'm trying to determine how to define variables
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 and been advised:
Code:
$amtpaid = (double)'amtpaid';,
$amtpaid=$row['amtpaid'];,
$amtpaid = (int)'amtpaid';
$amtpaid = 0;
Quote:
or told to "use different logic, change language, everything except "just do this".
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
I want to code them so that php understands their values and I can refer to them. Will someone
answer this question?