I am wondering if there is a way, in MySQL 4.1+, to query the specific dates between date ranges in my records?
For a quick example, I have two records with datetime ranges, like
ID | Activity | Start Date | End Date
1 Closed 1/1/11 11:00:00 1/4/11 11:00:00
2 Open 1/15/11 10:00:00 1/19/11 09:00:00
What I want to know is, is there a way I can get the dates between the "Start Date" and "End Date" for each of these records? Like so:
1/2/11, 1/3/11
And
1/16/11, 1/17/11, 1/18/11
Or at least a way to get close to that and use PHP to finish the rest of the way? Thanks!