shift numbers with paging

Posted on 16th Feb 2014 by admin

Hi

How would i be able to display 10 numbers 1 2 3 4 5 6 7 8 9 10
and when I click next then 2 3 4 5 6 7 8 9 10 11 and click next then 3 4 5 6 7 8 9 10 11 12

are displayed.

i am using a for loop to echo te index 1. up to 10 but have no idea how i would od the shifting thing.

here what I have so far:

<?php>
for ( $i =0; $i < 10 ; $i++){ ?>
<a href="<?php> printf("%s?pageNum_seller=%d%s", $currentPage, max(0, $pageNum_seller = $i), $queryString_seller); ?>"> <?php echo $i +1?></a>
<?php> } ?>

my next button increments $pageNum_seller
Thanks

Other forums