just do this

Started by guitarzRus, March 31, 2023, 09:59:53 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

guitarzRus

amtpaid is a database field that is: decimal 8,2 and may be 0.00  or may be more:
I have asked repeatedly for the correct way to code this variable to reflect it's
value and been advised: $amtpaid = (double)'amtpaid';, $amtpaid=$row['amtpaid'];,
$amtpaid = (int)'amtpaid'; and told to "use different logic, change language, everything
except "just do this".

duedate is a database field that is: date:
$dueday = 'dueday'; works in update.- dueday = DATE_ADD(dueday, INTERVAL 1 MONTH),

comments is text and be blank or not:
$comments = 'comments';  if not present: undefined - if present: php understands "comments" as
it's value.
I want to code them so that php understands their values and I can refer to them. Why cannot someone
answer this question?