How to return 10 in 10 select rows when clicking a button in php [duplicate]

0

I have a lot of data in a database and I need to display them in php. Since I have for example 100 lines, I will not display them all at one and only time because the page was going to be unstructured.

The idea is to display the last 10 lines first. If the user clicks a mais button, it displays the other 10, and so on until all 100, such as Gmail .

How is this done?

    
asked by anonymous 05.09.2017 / 14:00

1 answer

0
select * from clientes where ativo = 'S' limit 0, 10

Create variables to go by changing the value for more or less. Eg: The forward button increases 10 and so on ...

    
05.09.2017 / 14:14