Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Feb 2006
    Posts
    107
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question how to compare the date??

    hi, i hav a problem here which is....i need to do a condition to send an email to patient every half a year....for eg, the last treatment date for patient A is 2007-01-01, then email will send to him when the date is 2007-06-01....im confuse how to set this kind of condition....can anyone help me pls....

    thanks you

  • #2
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post
    Try google for PHP datediff, you should find a bunch of algorithms to perform this. If you're grabbing the info from mysql you can do it conditionally based on DATEDIFF() ...
    Omnis mico antequam dominus Spookster!


  •  

    Posting Permissions

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