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
Did you know?Explore Trending and Topic pages for more stories like this.

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

upload photo limits
ive got a upload photo script and im just trying to make more secure currently it limits size and as

Baffled by Undefined Index in Simple Array: Please Help!
Hello. I have a form which posts an array to this script. However, I can't seem to access the values

php code generators
All

Whilst enjoying learning a new language i have come accross a number of free code generat

need help in update query
i create a form for update. there are 8 columns in my mysql table. on my main page all the data is r

building a function with multiple outputs
I want to build a function that has multiple outputs.

I know but am not to sure how I should

Batch update record with Pagination
Hoping someone can help me with this issue I'm having, im trying to batch update records from a resu

Problem with PHP code- simple contact form
I'm relativily new to PHP; I know HTML and CSS stuff but I have a problem- I have a contact form wit

rename the file
File.txt

Code: ***DOCUMENT***
..DN:
000044255
..CB:
..SN:
..PY:
2009
..E

the problem with str_replace
$str="hahahahahahahahahahahahahaha";
$nn=1;
$str=str_replace('ha','MyGod',$str,$nn);

Echoing ASCII code
I have a php page that splits a string into chars and then echoes the ASCII code for each char. I'm

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