By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,995 Members | 1,088 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,995 IT Pros & Developers. It's quick & easy.

Problem in getting current page number in this case:

P: 25
Hi there,

I am quite confusing in getting page number for pagination links.

See what I am doing:I have a ShowDetails.php page on which I have created page links in for loop. Onclick of every links I am calling ajax function with parameter as URL(GetData.php) and target. When this function is called I get data through GetData.php and print it with div tag(target) in ShowDetails.php. As using ajax to get data, I not getting current page number in ShowDetails.php, because links are created in for loop and getting result and printing it div tag.

So can somebody here help me getting page no on ShowDetails.php

Your help will be greatly appreciated. Thank you in advance.
Sep 28 '10 #1
Share this Question
Share on Google+
1 Reply


code green
Expert 100+
P: 1,726
Next/Last page numbers can be passed as URL variables within the links.
Expand|Select|Wrap|Line Numbers
  1. '<a href=showdetails.php&n='.$next.'&l='.$last</a>'
Sep 28 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.