Select record(s) from mysql table where date is greater than or equal to today
问题 I am working on a project that has rows in the database that contains a date. I want to echo the data for the fields that have a date that is equal or greater to today. I have looked at other post and tried a lot of different methods and have yet to succedd. Currently what I have returns an error when I do >= but when I just do = with the statement below, I get all rows from the database. $sql = "SELECT * FROM drives WHERE ddest = '{$trimmed}' AND 'leave_date' => DATE_FORMAT(CURDATE(), '%m/%d