I have an event date, m_date, 2011-11-11
I have days prior to event, e_date, which is an int, 30
And Now()
How do i perform a query return true if todays date, Now() is < e_date – m_date?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You’ll want to use strtotime.
In MySQL, not really sure how you want it to return true, but it’d be something like this: