Announcement

Collapse
No announcement yet.

select

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • select

    hy,i use a select for write in a field {example}, and works,but want insert that if is date is today , change with a specific value .

  • #2
    Originally posted by andreaparisi View Post
    hy,i use a select for write in a field {example}, and works,but want insert that if is date is today , change with a specific value .
    Use the onvalidate event to check and replace the value if applicable.
    Albert Drent
    aducom software netherlands
    scriptcase partner, reseller, support and (turn-key) development
    www.scriptcase.eu / www.scriptcase.nl

    Comment


    • #3
      Can You write,example,i notte sure but use sql for write code for obtain date

      Comment


      • #4
        Hello,

        To obtain the date you can use the function date() of php:
        http://php.net/manual/en/function.date.php

        In the SQL, the commun is the curdate() function:
        http://www.w3schools.com/sql/func_curdate.asp
        --
        ScriptCase Team

        Comment

        Working...
        X