I just made a dynamic calendar for a news posting script and I would like each of the days on the calendar to be links only if a news post was made on the displayed day. So if news posts were made on March 03, 2005 and March 05, 2005 then those days would be links on the calendar (Linking to the posts that were made on those days).
I'm storing the dates and times with mySQl like so...
2005-03-03 10:03:22
And the calendar uses a for loop
for($i=0; $i < 42; $i++){
//bla bla bla
}
My question is how do I select all of the posts that were made in given month?
And how should I go about making the days on my calendar link to the news posts as described above?
-Nate