I have a simple foreach loop
foreach ($group as $key => $val) { echo $val . "<br/>"; }
This can return upto 500 entries. Is there any simple way to show 25 or 50 on a page with next page / previous page links ?
Thanks
From your post I can see that you are already aware of the word "paginate". Have you tried using it to search the forums?
Or are you asking how to loop over part of an array? [man]array_slice[/man].
Hi I did try searching but I could find anything with foreach loops. Most relate to MySQL.
Thanks for the pointer with array_slice. Any further pointers or help would be great 🙂
Mad_T;11006589 wrote:Any further pointers or help would be great 🙂
Any further pointers or help would be great 🙂
Use the same general approach discussed the numerous existing threads, replacing the "LIMIT" and/or other SQL-specific constructs with [man]array_slice/man's parameters.