CodeLobster IDE http://codelobster.com/forum/ |
|
how to define variables http://codelobster.com/forum/viewtopic.php?f=3&t=25231 |
Page 1 of 1 |
Author: | itsme [ Mon Apr 03, 2023 10:06 pm ] |
Post subject: | how to define variables |
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? |
Author: | LealBarron [ Sat Apr 29, 2023 4:51 am ] |
Post subject: | Re: how to define variables |
A variable is a characteristic that can be measured and that can assume different values. Height, age, income, province or country of birth, grades obtained at school and type of housing are all examples of variables. Variables may be classified into two main categories: categorical and numeric. |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |