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

Alternate messaging
I have 4 strings in MySQL db1

$string1 : Hello
$string2 : Hi
$string3 : Great
$strin

split string
Hi all

i have some names (imploded by comma):
Code: toronto,paris,madrid
Now, i would

How to ask a regex question?
Hi, I thought I'd share some of my insight after seeing too many bad questions that either get ignor

Need help PLEASE
ok i have this warning showing up

Warning: in_array() [function.in-array]: Wrong datatype for

Month String to Numeric?
Hi guys,

Given a month as a string, is there a simple way to find the numeric representation

WS-Security PL/SQL Forms
Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Prod
PL/SQL Release 10.2.0.2.0 - P

How would I convert this into code using an if statement?
ES equals exam score m equals $mean s equals $total. I already coded my mean and total so I'm not g

help connecting a form to php and then emailing the form
Ok. So, I made a form, and I need help to where when submitted, I get an email with the submitted de

Need help with cin setw
I made a program here is my code:

#include
#include
#i

$variable $variables type question
I need to be able to designate an array element dynamically, so I thought to use a variable variable

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