foreach ($result as $indices) {
// Aqui ele retorna 50 registros por conuslta
echo $indices['Empreendimento'];
// Provavelmente preciso de um loop da paginação aqui dentro
// para falar para o foreach que enquanto houver paginação, que
// ele continue buscando e listando os registros
}
I am doing a query on a REST
server which returns me 50 results at a time and makes paging of the rest of the records likely to improve traffic management and not overload the server.
I want to return all the records on a single page and I think I can do this using a for
or foreach
to tell the query that while not loading all the records, keep searching between the pages and listing the records, all on one page.
I think the solution is to read this paging within foreach
with another loop but I do not know how to apply. If you would like to take a look at the page, HERE
Question: How to extract all the data in a single page by scrolling through the pages and bringing the results?