I need a query to select data between two dates with today\'s date as a reference.
The database has a datetime field for \"start\" and a datetime field for \"end\".<
You can use the now timedate function in MySQL and the BETWEEN operator.
Raw SQL:
SELECT * FROM news WHERE NOW() BETWEEN start AND end;
Note: Be mindful of the default timezone, which affects the NOW() function, used by the server providing your MySQL resource.