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

simple ping code
been searchin the site/web and found code thats simple but doesnt work.

I have a personal we

mysql_affected_rows() usage
Possibly a MySQL issue, but the function that is not behaving in the anticipated way is a PHP functi

PHP Programming error. Please help!
Hi there,

Am making a website for a friend and have encountered a problem that i need fixing

Including calander to page - will not show other months than current??
im trying to add an existaing calander onto a profile page by using Code: <?php include "

user validation always displaying invalid ? please help
Hello,

I have 2 accounts and there is a field in mysql called validated it can be either &quo

How to generate a random array of integers subject to a certain constraint
I am writing a program that asks the user to enter an integer N and then generates a random array of

Create multiple (n) arrays
Hi there,

I have the following need:

I have 2 arrays (coming from a databases)

How to schedule the a job?
Hi,
I have prepared a task ( i.e. a procedure is prepare the file and send the same to con

Query output more than expected
$query=mysql_query("SELECT * FROM players, communities, divisions WHERE dob BETWEEN '{$start_da

MII Trends - add data onto chart object
Hello,

Can anyone please provide some thoughts on my current requirement:
its pretty

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