This really is a database question, not a PHP question.
If you have dates for beginning and end of activity, all the active records would be returned by a SQL query like this:
SELECT something FROM sometable WHERE startdate <= NOW() AND enddate >= NOW()
If you are using MySQL, read the section of the MySQL manual that covers date and time functions. It is informative and full of examples.