I want to create updated URL when Next 1000 button is clicked on the current page. i.e incrementing number by 1000 every time Next 1000 is clicked.
e.g: If the current URL is
mywebsite.com/people.php?number=0
Next 1000 should be saying:
mywebsite.com/people.php?number=1000
And so on it continues every time button is clicked
<?php
$count = 1000;
?>
<a href="people.php?number=<?php echo $_GET['number'] + $count ;?>">Next 1000</a>
I know there are a ton of pagination scripts out there. I’m using jQuery to fetch 1000 records at a time.
I just want a button to allow the users to load the next 1000 if they want to.
You would want to do some checks on the input, but this is the basic answer:
Safer bet would be: