Multiple pagination coexistence for a single PHP page
Wrote a PHP paging custom function, with the feeling is very good:
Pagefunc ($dataNum, $pageSize, $pageName)//recordset, number of bars displayed per page, page name
Today, I suddenly think, if I have a page and a few areas to do the paging it?
The first thing I think about is to add a parameter to the custom paging function to identify the name of the paging to achieve the purpose of the distinction, the result failed!
Please provide a workable solution to my ideas! Thank you!
PHP page Out
Share to:
------Solution--------------------
The simplest way, copy an identical one, and then change the variable to do it.
------Solution--------------------
References:
wrote a PHP paging custom function, with the feeling is very good:
Pagefunc ($dataNum, $pageSize, $pageName)//recordset, number of bars displayed per page, page name
Today, I suddenly think, if I have a page and a few areas to do the paging it?
The first thing I think about is to add a parameter to the custom paging function to identify the name of the paging to achieve the purpose of the distinction, the result failed!
Please provide a workable solution to my ideas! Thank you!
In general, more than one page of paging using AJAX paging it
------Solution--------------------
Reference:
is not I did not express clearly, my intention is:
A page has multiple modules that need to be paged, and the modules do not affect the paging display of the data
No words, I said is not clear enough?
Add a parameter to distinguish whether paging is called and whether paging data is queried
You decide whether to call paging and whether to query paging data according to different identities, which naturally doesn't affect pagination display.
------Solution--------------------
Change to a class, with a different instance
------Solution--------------------
In the way of Ajax, there is no such thing as the one you are talking about.
Your problem should be because the URL of the page to upload the parameters, do not know to which area of the paging caused. If you want to use the traditional meaning of the communication. Just pass a few more parameters chant. For example: scope1_page=1&scope2_page=2 ...
------Solution--------------------
References:
Quote: References:
Quote: References:
Quote: References:
In the way of Ajax, there is no such thing as the one you are talking about.
Your problem should be because the URL of the page to upload the parameters, do not know to which area of the paging caused. If you want to use the traditional meaning of the communication. Just pass a few more parameters chant. For example: scope1_page=1&scope2_page=2 ...
That's true, but I'd like to use the traditional pass through custom function to solve, I only have to modify the custom function, can you tell me the key to change where?
Without words, do you have to get the code to understand?
You decide whether to call paging and whether to query paging data according to different identities, which naturally doesn't affect pagination display.
is not the Red 2 text is very abstruse?
Do you know what is called paging data?
Do you know what call paging is?
From the 5 floor, I said I was going to start with these 2.
You've been just trying to figure out how to call paging.
Really no language, is not "query paging data" These 6 Chinese is very abstruse?
"Querying paging data" I do not write to the page in the custom function, is a database operation class to read the data, but to the operation of the class to pass in the offset value;
In addition, my work is mainly front-end, PHP is the primary stage, so there is a great degree of obstacles! So it is best to provide the main code, thank you ~