Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: just do this  (Read 32831 times)

0 Members and 1 Guest are viewing this topic.

guitarzRus

    Topic Starter


    Rookie

    • Experience: Experienced
    • OS: Windows 7
    just do this
    « on: March 31, 2023, 09:59:53 AM »
    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?