You can split the table into different pages using php/mysql only.
To recover only part of Mysql results, use LIMIT
in your query. Example:
SELECT * FROM tabela WHERE campo='valor' LIMIT 0,25
The above query will recover the first 25 lines of the query. To recover the next 25 entries, use LIMIT 25,25
(the first parameter is the offset, ie how many lines you want to "skip" while retrieving the results, and the second parameter is how many lines bring).
To jump from one page to another, the suggestion is to use a GET variable (variables that are in the page URL). So if your page is at the address www.exemplo.com.br/table.php, just create a link to the next page using www.exemplo.com.br/table.php? page=2, for example. To get the value of the variable in PHP just use $_GET['pagina']
.
I hope I’ve helped.
Look up Bootstrap Table, that’s exactly what you want, but it’s all kind of done. You only need to be familiar with Jquery (Java Script library).
– RickPariz
I use the Datatables to do this, but you have to know Jquery.
– Leandro Lima
This Datatables looks pretty easy, I’ll try for it.
– Geraldão de Rívia