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! 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() ) 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. Link to comment https://forums.phpfreaks.com/topic/120221-solved-excluding-past-dates/#findComment-619311 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.