2012-10-27, 03:22:00
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
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