- 1

How can I create a php pagination.

I need a pagination style with the number of pages, previous and next link. Please help. Thanks.

16th Jul 2018, 6:59 PM
Li2Ekodaf
Li2Ekodaf - avatar
6 Answers
+ 2
You use mysql?
16th Jul 2018, 7:01 PM
Toni Isotalo
Toni Isotalo - avatar
+ 2
<a href="?page=<?php echo $_GET['page'] - 1 ?>">Previous</a> <a href="?page=<?php echo $_GET['page'] + 1 ?>">Next</a>
16th Jul 2018, 8:48 PM
Toni Isotalo
Toni Isotalo - avatar
0
Yes I did
16th Jul 2018, 7:02 PM
Li2Ekodaf
Li2Ekodaf - avatar
0
Thanks it worked but how can I create the "next and previous" link for the pagination?
16th Jul 2018, 7:37 PM
Li2Ekodaf
Li2Ekodaf - avatar
0
Thanks man!
19th Jul 2018, 1:11 PM
Li2Ekodaf
Li2Ekodaf - avatar