| | |
Regarding multiple Pagination
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Aug 2007
Posts: 55
Reputation:
Solved Threads: 9
Well, i have developed something similar tot that before.
What you first need is the pagination code. Then add to each url of the pagination links extra variables that maintain the current state of every category & subcategory being displayed at that moment.
e.g.
Category A has the following
{
link1
- has state 20
- url (category=a&link=1&B_x=3&B_y=14&B_z=24)
link2
- has state 10
- url(category=a&link=2&B_x=3&B_y=14&B_z=24)
}
Category B has the following {
link1
- has state 3
- url (category=b&link=1&A_x=10&A_y=20)
link2
- has state 14
- url(category=b&link=2&A_x=10&A_y=20)
link3
- has state 24
- url(category=b&link=3&A_x=10&A_y=20)
}
In the example what i am trying to say is, the links in each category maintain the current state of what's currently displayed in the other category, this way when the page reloads, you use the the variables you passed in the url to maintain the other categories/subcategories.
So by saying e.g.
in category b link 3
url(category=b&link=3&A_x=10&A_y=20) means pass the variables category=b and link=3, to the pagination.php file for processing, and then when you reload the results page maintain the results from Category A as:
link 1 (aka A_x) has state 10
link 2 (aka A_y) has state 20.
This way we have maintained what was previously displayed in Category A, but only altered what's displayed in B.
If you need more elaboration i can provide.
What you first need is the pagination code. Then add to each url of the pagination links extra variables that maintain the current state of every category & subcategory being displayed at that moment.
e.g.
Category A has the following
{
link1
- has state 20
- url (category=a&link=1&B_x=3&B_y=14&B_z=24)
link2
- has state 10
- url(category=a&link=2&B_x=3&B_y=14&B_z=24)
}
Category B has the following {
link1
- has state 3
- url (category=b&link=1&A_x=10&A_y=20)
link2
- has state 14
- url(category=b&link=2&A_x=10&A_y=20)
link3
- has state 24
- url(category=b&link=3&A_x=10&A_y=20)
}
In the example what i am trying to say is, the links in each category maintain the current state of what's currently displayed in the other category, this way when the page reloads, you use the the variables you passed in the url to maintain the other categories/subcategories.
So by saying e.g.
in category b link 3
url(category=b&link=3&A_x=10&A_y=20) means pass the variables category=b and link=3, to the pagination.php file for processing, and then when you reload the results page maintain the results from Category A as:
link 1 (aka A_x) has state 10
link 2 (aka A_y) has state 20.
This way we have maintained what was previously displayed in Category A, but only altered what's displayed in B.
If you need more elaboration i can provide.
![]() |
Similar Threads
- Multiple webcams (USB Devices and other Peripherals)
- Search with multiple search terms used (PHP)
- Search from multiple tables ?? (PHP)
- Store multiple selection from pagination info into single array (PHP)
- Multiple IE starting (Web Browsers)
- Can't close multiple IE windows (Web Browsers)
Other Threads in the PHP Forum
- Previous Thread: mediawiki broken
- Next Thread: how to add expires header to images?
| Thread Tools | Search this Thread |
301 apache api array autosuggest beginner binary broken cakephp checkbox class cms code compression cron curl data database date display dropdownlist dynamic echo email eregi error execution file files folder form forms function functions google href htaccess html httppost if...loop image include insert ip javascript joomla jquery key library limit link links login mail md5 menu mlm multiple mysql mysql_real_escape_string oop paypal pdf pdfdownload php phpvotingscript problem query radio random recursion remote screen script search searchbox server session sessions sms sorting source space sql syntax system table tutorial update upload url validator variable video volume votedown web website youtube zend





