I have a list of mysql timestamps. I want to produce an html menu, which has got years as first LI and months as nested LI. for example:
2012 -> december, may, april. 2011 -> november, january. 2010 -> april, march, february.
as you see, I want the menu to be an array of years and within months, just the months (and years) which I have in my database.
It's simple for sure, but I can't realize how to perform this. I'm querying all my timestamps and cycling them, but then when I have to fill the array I can't manage.