topshelfbleu Posted August 20, 2010 Share Posted August 20, 2010 My query is a fixtures list for my local sports team- There seems little point including fixtures from the past as they are in a results query anyway. I'm ordering by date (see below) but how can I remove the ones already past? $query = "SELECT * FROM fix10 ORDER BY Date"; TIA Nick Link to comment https://forums.phpfreaks.com/topic/211330-select-date-fields-in-the-future-but-remove-those-that-have-past/ Share on other sites More sharing options...
Psycho Posted August 20, 2010 Share Posted August 20, 2010 Well if your field is a true date field, then this should work $query = "SELECT * FROM fix10 WHERE date >= CURDATE() ORDER BY Date"; Link to comment https://forums.phpfreaks.com/topic/211330-select-date-fields-in-the-future-but-remove-those-that-have-past/#findComment-1101910 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.