hassank1 Posted August 5, 2009 Share Posted August 5, 2009 Hi in my db there's a field called ExpiryDate which is a date field I want to execute a query that will get me all the users in which their account will expire in less than 15 days.. in other words all the users whose accounts will expire in less than 15 days thx I am using mysql 5.0.51 .. Quote Link to comment https://forums.phpfreaks.com/topic/168936-get-date-less-than-15-days-from-now/ Share on other sites More sharing options...
kickstart Posted August 5, 2009 Share Posted August 5, 2009 Hi Something like this:- SELECT * FROM SomeTableWithDate WHERE ExpiryDate < ( now( ) + INTERVAL 15 DAY ) All the best Keith Quote Link to comment https://forums.phpfreaks.com/topic/168936-get-date-less-than-15-days-from-now/#findComment-891327 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.