saravanataee Posted May 23, 2013 Share Posted May 23, 2013 Dear all, Here is my scenario, I have a php page called index.php which is linked to dashboard. At the index page i will have 40-50 href's each with a id like dashboard.php/subcat=1 When a user click's particular href they will be forwarded to a page called dashboard and there i get this id. $subcat=$_REQUEST['subcat']; This dashboard is dynamic. In this page i have three different div's. Each with different query and result display. For example: My first div has a query and some 50 results. I want a display first four rows and remaining as a ajax pagination. similarly for the other two div's. There is no problem in using ajax pagination because it will be executed in different page and result will be display here. But the real problem is in each of my query i should pass the original subcat id which is what make the dashboard dynamic. Now, i need someway to pass this dynamic id for my external pagination for each query. Quote Link to comment https://forums.phpfreaks.com/topic/278309-php-pagination-collapse-and-help/ Share on other sites More sharing options...
mac_gyver Posted May 23, 2013 Share Posted May 23, 2013 the URL you are building and using in the AJAX request would need to have the subcat=x parameter, in addition to the page=y parameter. Quote Link to comment https://forums.phpfreaks.com/topic/278309-php-pagination-collapse-and-help/#findComment-1431806 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.