views:

32

answers:

0

Hi There I am using for loop to create pagination links, according to no. of pages directly from database. To get data from database I am using ajax in this pagination. What actually I do is, I create links through forloop and on click of link, call a page containing database connection and get data through ajax script and print it with div id. until now, I wasn't using previous and next links, but now I want to use this. I could do it with first and last links but not able to go with next and previous as I'm not getting current link number on the page from where I am clicking the page. So what can I do to get current page no. Feel free to ask any details if needed.

Can you guys shed some light here, please?

Your help will be greatly appreciated.

Thank you in advance.