Hi,
How can i do paging in php for foreach loop?
Thank YOu
How can i do paging in php?
Moderator: General Moderators
Ya u r right But...
HI,
ya U r right But here the thing is for forloop how can i do cos we can do for records coming from database by using offset and or limit but how can we do here for array type elements if they are lot more to limit in the page.
Thank You...
ya U r right But here the thing is for forloop how can i do cos we can do for records coming from database by using offset and or limit but how can we do here for array type elements if they are lot more to limit in the page.
Thank You...
You can use array_slice on an array with similar effects as LIMIT has on a mysql query result.
Re: Ya u r right But...
Then you should improve your search query... Even the search button on my blog returns valid resultsdharprog wrote:HI,
ya U r right But here the thing is for forloop how can i do cos we can do for records coming from database by using offset and or limit but how can we do here for array type elements if they are lot more to limit in the page.
Thank You...