I implemented the following code in my PHP script:
$months = mysql_query("SELECT DISTINCT DATE_FORMAT(storydate, '%M %Y') FROM news");
Now, I just need to know how to display the results that are returned. This database query will search through all of the dates, and it will only print out January 2001, March 2001, etc. if it finds a date that falls under that category. The query will print everything out fine in phpMyAdmin, but I don't know how to get it to work in a PHP script. Any help would be greatly appreciated.