I have a dvd list that i would like to organize it by the year the film/dvd was created. I would also like to set it up, like this:
1920 - 1929
Film 1
Film 2
1930-1939
Film 3
Film 4
and so on......
in the db (using mysql), i have a field named year of type date in the format: year-month-day (0000-00-00)
Now I could create a table containing the "header" information (eg. 1920-1929), loop through all my dvd_items and use and if/else statements to filter out where each title falls. I'm certain that would work, but i think that its unnecessary and its a ton of if/else statements.
I'm sure that their could be another, easier, way to accomplish this same task. Does anyone have another suggestion?
Thanks.