I’m trying to come up with a way to query my blog database to find out which days within a certain range have posts.
Eg. If my dates are 1/1/2012 – 1/30/2012, how many of those 30 days contain at least one blog post?
My dates are stored as: 0000-00-00 00:00:00
I think just to get the number of days that have posts
To get a list of them, something more like what jergen wrote:
date is a mysql function to get the date from a datetime column (I haven’t tried this, just from reading the manuals)