Mateobus Posted August 7, 2006 Share Posted August 7, 2006 I have rows listed in my database where there is 1 column called the date column that is a date element (XXXX-XX-XX). How do I run a select query that selects only the rows where the date is today or before today... Link to comment https://forums.phpfreaks.com/topic/16807-query-using-dates/ Share on other sites More sharing options...
ryanlwh Posted August 7, 2006 Share Posted August 7, 2006 [code]SELECT * FROM table WHERE date=CURDATE()[/code] Link to comment https://forums.phpfreaks.com/topic/16807-query-using-dates/#findComment-70729 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.