Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2003
    Posts
    61

    Unanswered: help with date + 1 month

    i need something like this

    $expire=date('mm/dd/YY') + 6 months;
    INSERT INTO PERSON (EXPIRE) VALUES ('$exprie')


    can someone make this CONCEPT work for me plz?
    I'm just very confused with dates and adding days and months to them...
    thanks so much
    Noam

  2. #2
    Join Date
    Apr 2002
    Location
    Toronto, Canada
    Posts
    20,002
    INSERT INTO PERSON (EXPIRE)
    VALUES ( date_add(current_date, interval 6 month) )
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •