Selection of number of records per page by the user in php paging scriptNote that when the page first opens there is no selection for the number of records per pages so we have given a default value of 10 to this. Any point of time if the user gives the selection for number of records from the drop down list box then the data will be submitted to the first page only. This way we can ensure that any change always starts from first page only. If you don't want this to happen and once the visitor is changing number of records the page should start from current page itself ( without going to first page ) then you have to add the value of start within the form by using one hidden tag.
<input type=hidden name=start value=$start>
This is also explained in the downloaded demo file.
Subscribe to our YouTube Channel here
This article is written by plus2net.com team.
https://www.plus2net.com
| ||||||
| ||||||