The MySQL database is very simple. It consists of rows with the following fields:
ID, NewsDate, Subject, ShortStory, FullStory
The NewsDate field is in the MySQL format Date().
I am very new to PHP... could someone tell me how I could use these dates (YYYY-MM-DD) to automatically archive by years and months? I want my news archive to look something like:
2002
Jan
Feb
March
Etc
2003
Jan
Feb
March
Etc
And after you click a month, I want it to have a list of the news for that month by subject with a link to the file display.php?id=? (the file I made that displays the news story).
Any how, could someone show me the type of code to use to make it list them under years and months by using MySQL's Date() function? I really have no clue where to start. I am pretty new at this.