Welcome Guest, Not a member yet? Register   Sign In
posting the latest of something to the top of the row
#1

[eluser]mdriscol[/eluser]
Hi, I'm new to this.

I have a page displaying data from a table with foreach($announcements->result() as $row):

When its displayed each new row is displayed below the oldest but I want to do that in reverse order. The newer posts need to be on the top instead of the bottom of the table.

How can I accomplish this?

Should I be using a function that reorders the table in the database or a function that displays foreach in reverse on the view?


Messages In This Thread
posting the latest of something to the top of the row - by El Forum - 10-19-2007, 02:24 PM
posting the latest of something to the top of the row - by El Forum - 10-19-2007, 02:53 PM
posting the latest of something to the top of the row - by El Forum - 10-19-2007, 02:59 PM
posting the latest of something to the top of the row - by El Forum - 10-19-2007, 03:42 PM
posting the latest of something to the top of the row - by El Forum - 02-27-2008, 02:58 AM



Theme © iAndrew 2016 - Forum software by © MyBB