Group By Month/Year Within Array |
[eluser]Jay Logan[/eluser]
Still doesn't work the way I need it to. Here is kind of what I want the list to look like. I have most of the work done but I'm stuck at the last part. http://www.fusioncomputersolutions.com/meets I've managed to assign the month & year to a value in the array. Now all I need to do is group duplicate month_year values together so I can make the list work. If I can't get it, I guess I will just add a new column to the DB with the value and make life easier. Here's my model. Code: function get_all_meets()
[eluser]xwero[/eluser]
When i wrote loop the results, i was thinking about doing the loop in the view. Code: // model
[eluser]Jay Logan[/eluser]
Well that works. Kind of clutters my view file with a bunch of PHP. I think I may just insert that extra column into my database. Thanks for all the help though. |
Welcome Guest, Not a member yet? Register Sign In |