In my MySQL database, I have a startdate and an enddate field. Using today’s date from PHP, is there a way to only select rows where the startdate is before today’s date and the enddate is after today’s date?
In my MySQL database, I have a startdate and an enddate field. Using today’s
Share
Try
or
Docs for BETWEEN here
Rather than use PHP to get the current date use the build in MySQL function
CURDATE()so :or