Multiple tabs coexist on a php page

Source: Internet
Author: User
Multiple tabs on a php page coexist and a php Paging User-defined function is written. it feels good to use: pageFunc ($ dataNum, $ pageSize, $ pageName) // record set, the number of entries displayed on each page, the page name suddenly wondered today. what if there are pages in several areas on a page? First of all, I want to add a parameter to the custom paging function. one php page has multiple paging coexistence parameters.
I wrote a php Paging User-defined function. it feels good to use it:
PageFunc ($ dataNum, $ pageSize, $ pageName) // record set, number of entries displayed per page, page name

Today, I suddenly wondered what to do if a page has pages in several areas?
First, I thought of adding a parameter to the custom paging function to identify the paging name for the purpose of differentiation. the result failed!
Please provide me with feasible solutions! Thank you! PHP pagination:
------ Solution --------------------
The simplest method is to copy an identical one and change the variable.
------ Solution --------------------
Reference:
I wrote a php Paging User-defined function. it feels good to use it:
PageFunc ($ dataNum, $ pageSize, $ pageName) // record set, number of entries displayed per page, page name

Today, I suddenly wondered what to do if a page has pages in several areas?
First, I thought of adding a parameter to the custom paging function to identify the paging name for the purpose of differentiation. the result failed!
Please provide me with feasible solutions! Thank you!

Generally, AJAX paging is used for multiple pages.
------ Solution --------------------
Reference:
I am not clear about it. my intention is:
Multiple modules on a single page need to use pagination, and each module does not affect the paging display of data.

Speechless. isn't it clear enough?

Add another parameter to differentiate whether paging is called and whether paging data is queried


If you determine whether to call paging and query paging data based on different identifiers, the page display will not be affected.
------ Solution --------------------
Change to class and use different instances
------ Solution --------------------
If you use ajax to solve the problem, there is no such problem.

Your problem should be caused by the parameter of the number of pages uploaded by the url. If it is necessary to use the traditional meaning of passing arguments. Just upload a few more parameters. For example, scopedomainpage = 1 & scope2_page = 2...
------ Solution --------------------
Reference:
Quote: reference:

Quote: reference:

Quote: reference:

If you use ajax to solve the problem, there is no such problem.

Your problem should be caused by the parameter of the number of pages uploaded by the url. If it is necessary to use the traditional meaning of passing arguments. Just upload a few more parameters. For example, scopedomainpage = 1 & scope2_page = 2...

This is indeed the case, but I want to use the traditional method of passing parameters through custom functions. I only have to modify the custom functions, can you tell me where the key changes are?


Speechless, do you have to get the code to understand?
If you determine whether to call paging and query paging data based on different identifiers, the page display will not be affected.

Is the text in red 2 very esoteric?
What is querying paging data?
What is calling paging?
From the fifth floor, I said I would start from both aspects.
You have been trying to determine how to call paging.
Really speechless, isn't "querying paging data" very esoteric Chinese?

"Querying paging data" is not written to the paging custom function. it reads data in a database operation class, but only transmits an offset value to this operation class;
In addition, I work mainly on the front-end. php is in the initial stage, so there is a lot of obstacle! So it is best to provide the main code. thank you ~

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.