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 Quote 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"; Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.