Though the code given code is good as per my observation If no of pages is high it displays all the links from 1 to 500 which won't be good. Try to display only 5 or 10 links
Thanks Please Visit My Channel Inside My Channel Have a Website Link, You need to follow it, once you opened my website, then you will able to many Php based project tutorial available :)
Plenty thanks for this great resource on pagination. besides selecting and paginating data from table rows is there a way i can paginate a lengthy string or characters using php. (example: to paginate a story of 5000 words into 1000 characters each). Thanks in anticipation.
Thanks so much for this tutorial. May I ask please? If you had a search field with method GET, and paginate your result, & the 1st page displays by default, when you click 'next', or 2 for page 2, and the page goes blank, what might the cause be?
Thanks. Pretty straightforward. But, when the term to find in the database comes from a search user input field, the pagination breakdown. How do you ensure the search term remains in the pagination pr_query?
NEED HELP how about if i add in my $sql a order by rand(). bcause evertime i click the "page1" it changes everytime.. what can i do to generate a random output that dont refresh when i click thesame number :)....
There is a problem. Since only 3 pages are seen the user will see only 10 records. He will think there is no 4th page. And he will not press 'Next button.'