PHP PDO Specifig Pagination
Arrange the codes according to yourself.
Working logic:
First page - Previous page - 1 - 2 - 3 - 4 - [5] active - 6 - 7 - 8 - 9 - 10 - Next page - Last page
<< - < - 1 - 2 - 3 - 4 - [5] active - 6 - 7 - 8 - 9 - 10 - > - >>
If the page is 5, 5 will be added to the next list
5 - 6 - 7 - 8 - 9 - 10
10 - 11 - 12 - 13 - 14 - 15
15 - 16 - 17 - 18 - 19 - 20