By: Dan
That would be awesome! thank you and great work on this class by the way. I did a lot of searching and this is by far the easiest one I have found to use and implement.
View ArticleBy: James Stewart
Hey Stefan, I’m looking to construct the links the same way as Roberto (ie. http://example.com/page/1). In fact, I’m trying to get it working with Infinite Scroll. Would you have any pointers for me?...
View ArticleBy: James Stewart
Update: figured it out more or less, but it just keeps looping through the very last record. Not sure how to stop it doing that
View ArticleBy: Prince Vert
Hi Stefan, how can I get the “next link” when I have a few reg in my Data Base?? E; I have 100 reg in my data base, so, I show 10 reg per page and the pagination is like this “1 2 3 4 5 6 7 8 9 10″ but...
View ArticleBy: Alejandro
Hi Stefan, thank you for sharing this exelent pagination class. I hope you can help me whit this problem: I have implemented zebra pagination in a page where I show the records from the DB, also I...
View ArticleBy: Nookie
I’m trying to center $pagination->render(); with css but it’s impossible. Any tips please? instead of the being in left side of page.
View ArticleBy: Stefan Gabos
for IE8+ and all other browsers it's <pre><code>.pagination { display: table; margin: 0 auto }</code></pre>
View ArticleBy: suby s surendran
I cant use pagination when uploading in to web server. But it works perfectly on Local host. I get the url like this “http://mysite.com/index.php/4/?admin/location” But i need to get it like...
View ArticleBy: suby s surendran
finally I ghod the answer. I rewrite ” _build_uri() ” as $urlz=$_SERVER['REQUEST_URI']; $urlz_exolode=explode(‘?’,$urlz); $second_explode=explode(‘/’,$urlz_exolode[1]);...
View ArticleBy: Stefan Gabos
you are probably not using “SQL_CALC_FOUND_ROWS” in your query…see the examples
View ArticleBy: Stefan Gabos
currently not but those look like valid options so I wrote them down in my todo list but can’t promise you a time frame for that. thanks!
View ArticleBy: Phil
Thanks for this. It works fine on a normal php page, but I have problems on a page that already passes URL parameters, e.g. somepage.php?mode=list&type=0 The URL returned for these is then...
View ArticleBy: Phil
Okay, so this site interprets the & amp; entities. I see where the problem is. You have subjected the entire URL to htmlspecialcharacters in _build_uri. This screws up the valid ampersands. It...
View ArticleBy: Stefan Gabos
i should have used “html_entity_decode()” before “htmlspecialchars()”… i’ll update the script. thank you!
View ArticleBy: Hanh Phung Van
Thank you for sharing this. But I have a question. The class show only the first page and the last page, after and before three dots. How can I show something like: 1 2 3 4…. 12 13 14 15 16 … 29 30 31...
View ArticleBy: Stefan Gabos
sorry that is not possible and it is currently not planned for future versions.
View ArticleBy: Moazam
Very well done! There should have a function for all inputs instead of calling individual functions for setting up pages, total, etc. You know what I mean It could saved couple of lines
View Article
More Pages to Explore .....