Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Split array into pages
#1
Hello helpful people!
I have an XML that will updated daily, and I have a foreach() that echoes them all on a page. I also use array_reverse() to make the most recent on top. As you can tell, it will become very long very fast, so I want to split it into pages. Is there a way to take an input (via _GET) that tells it to take the first 20 (or the last 20, before array_reverse) children, then the next page takes the 20 after that? It would be extremely helpful.
Thanks,
Alex
Reply


Messages In This Thread
Split array into pages - by mdgnys - 2012-10-27, 03:22:00
Split array into pages - by shawn_a - 2012-10-27, 04:18:25
Split array into pages - by Carlos - 2012-10-27, 05:30:26
Split array into pages - by mdgnys - 2012-10-27, 05:36:00



Users browsing this thread: 1 Guest(s)