When I query, I get the following result [image1]
When clicking to go to page 2, I get the following result [image2]
That is, on page "1" everything works with the total results displayed (10) and total links (2), but when going to page "2", many more links appear, which indicates that he consulted and returned every table, filled in with the respective amount of links and showed the wrong content on page 2.
Note:
19 fields with the term CONFEF; 10 results per page; 4 links to previous and next page; 77 fields in the table doubts;
form.php
<body>
<form name="frmBusca" method="post" enctype="multipart/form-data" action="pesquisa.php?pag=1" >
<input type="text" name="palavra" />
<input type="submit" value="Buscar" />
</form>
</body>