I have a table in which a date column is there in the format dd/mm/yyyy. I have an accordion in which I want to show years like 2014 then 2013 and so on. When I click on 2014(my accordion) it will expand. If I had a column containing only year then it would have been easier. Now I am confused whether to simply create a columns named year. or do something in php to get this think working.
Basically I have to display a UI which customers purchase history will be shown. Year wise. When I click on 2014 the pane would expand and inside, all his invoices would be visible.
Any help is appreciated Thanks in advance
You can manipulate the results with php to get your desired results.
Don't know exactly what you're doing with it after or how you're creating the html, but this should get you on the right track.