i-fm Posted April 10, 2007 Share Posted April 10, 2007 I've spent a fair bit of time looking around other posts looking for answer to this one and couldnt really come up with anything. I have an events list. shows it by date - (this field is called sdate saved in mysql using date) at the moment it shows everything in the database, but what i want it to do is not show any old dates (records)... i only want it to show upcoming dates and not past dates. thanks in advance dave Link to comment https://forums.phpfreaks.com/topic/46414-solved-how-do-i-not-show-old-dates-on-events-list/ Share on other sites More sharing options...
shocker-z Posted April 10, 2007 Share Posted April 10, 2007 Try this mate SELECT * FROM events WHERE sdate > CURDATE() order by sdate ASC Regards Liam Link to comment https://forums.phpfreaks.com/topic/46414-solved-how-do-i-not-show-old-dates-on-events-list/#findComment-225725 Share on other sites More sharing options...
i-fm Posted April 10, 2007 Author Share Posted April 10, 2007 Liam Thank you, works perfect.... couldnt ask for a simplier or quicker fix. Cheers Dave Link to comment https://forums.phpfreaks.com/topic/46414-solved-how-do-i-not-show-old-dates-on-events-list/#findComment-225732 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.