Get Other data in Views |
[eluser]MisaghCJ[/eluser]
Hi to all. I have been working with codeigniter since 2 months ago and during this period I had a problem that I didn't find any solution for it. Imagine we have a monthly archive for news and we want to show it this way: January 2011 => List of News August 2011 => List of News September 2011 => List of News The news table has "month" field that stores the month of news. I get list of month by "group by" in sql and when I want to show list of news I can't do that. Consider we want to show this 3 months in view and we draw a table for each of them. the title of table is the name of Month and the rows of table is list of last five news. How can we show it in the view? I don't know how can I send data for view. This Picture shows my words better : http://www.img4up.com/up2/31162532966910755015.gif Thanks |
Messages In This Thread |
Get Other data in Views - by El Forum - 06-06-2011, 09:02 AM
Get Other data in Views - by El Forum - 06-07-2011, 04:10 PM
Get Other data in Views - by El Forum - 06-07-2011, 06:11 PM
Get Other data in Views - by El Forum - 06-08-2011, 06:04 AM
Get Other data in Views - by El Forum - 06-08-2011, 06:52 AM
Get Other data in Views - by El Forum - 06-08-2011, 08:59 AM
Get Other data in Views - by El Forum - 06-09-2011, 02:52 AM
|