shift numbers with paging


Posted on 16th Feb 2014 07:03 pm 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

No comments posted yet

Your Answer:

Login to answer
129 Like 10 Dislike
Previous forums Next forums
Other forums

Ten Operator Syntax
Hi Guys,

I can't figure out why i am getting a parse error with this basic ten op code:

Display search result
Hi!

I have a SQL database with information about albums and track (music).

This is wh

Email to a friend script problems
I have this send-to-a-friend script with 2 issues:


1) When you open the form popup on a p

Using the $_GET variable to view certain records
Hello,

First let me explain my problem, I have 2 pages the first page pull a list of Guide ti

private constructor
Hello,

Can we create a constructor as private? If yes, what is the use of it? If no, why can'

MVC - Code review
I'm in the process of trying to wrap my head around MVC, and as part of that, I'm attempting to impl

Snapshot from video
anyone knw how to make a snapshot maker from avi n mkv format.
for example if i give a direct lin

Access website from only 1 computer...?
One of my customers wants his website to only be accessed by people in which they bought the website

Error in write byte array into document in SM58
Hi Gurus,

Getting the following error status in Transactional RFC (SM58) ..... *Error i

error reporting
hey everyone

I have a production server in which I want error reporting but only on some page

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash