If I have a list of lets say posts from a blog on a database, with the date formate YYYYMMDD, and I want to list all the titles of these posts under their unique months, is it possible to do that in one or two querys?
ie)
Month Title x
-post (month x)
-post (month x)
-post (month x)
Month Title y
-post (month y)
-post (month y)
etc..
instead of one long list (without the "Month Title .." separations)..
Normally, I would do a query to find the latest date, break it down, compare it to todays date, find the number of months between, than do a query for each of those months in between.. seems kinda tedious and unnecessary to me..
Thanks in advanced for any input!