studgate Posted August 18, 2008 Share Posted August 18, 2008 Hi Guys, What I want to do is excluding past dates from my list. I want to create a list of upcoming events and i want a way to check the date and if the date is less than today, remove it from the list. How can I do that??? Thanks in advance! Quote Link to comment https://forums.phpfreaks.com/topic/120221-solved-excluding-past-dates/ Share on other sites More sharing options...
peasepud Posted August 18, 2008 Share Posted August 18, 2008 Your SELECT statement should have the following: WHERE (date_field_name >= CURDATE() ) Quote Link to comment https://forums.phpfreaks.com/topic/120221-solved-excluding-past-dates/#findComment-619300 Share on other sites More sharing options...
studgate Posted August 18, 2008 Author Share Posted August 18, 2008 thanks peasepud, it works just fine. Quote Link to comment https://forums.phpfreaks.com/topic/120221-solved-excluding-past-dates/#findComment-619311 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.