What I am trying to do is create a drop down form to select dates for articles. Here is the mysql table that holds the articles:
Table fields:
id - int(11), auto increment
timestamp - datetime
news - text
Sample layout:
|id|timestamp
|1 |2003-01-12
|2 |2003-02-14
|3 |2003-03-24
|4 |2003-04-11
|5 |2003-05-25
|6 |2003-06-13
|7 |2003-07-19
|8 |2003-08-05
|9 |2003-09-06
|10|2003-10-26
|11|2003-11-19
|12|2003-12-23
|13|2004-01-17
|14|2004-02-01
|15|2004-05-19
What I am trying to do is create a form with two drop down menus, one that will hold the month and one the year.
Now if the user selects 2004 in the year dropdown, for the month dropdown, I'd only like to display the months that are available for 2004 in the database (in this example it is january and february, and may), is this possible?