Add query conditions for the PHP paging class

Source: Internet
Author: User
Add query conditions for the PHP paging class. how can I add the page number displayed in the paging class to the query conditions? Currently, no page number link is added to the query conditions.

Php paging source code

 2) {$ pagenav. = '... ';} if ($ c = 1) {continue;} if ($ c = $ n) {break;} if ($ c = $ page) {$ pagenav. = ''. $ page. '';} else {$ pagenav. = "$ c";} if ($ I ==$ o & $ c <$ n-1) {$ pagenav. = '... ';} if ($ I >$ n) {break;} // when the total number of pages is less than the length of the page number table} if ($ page ==$ n & $ n! = 1) {$ pagenav. = ''. $ n. '';} else {$ pagenav. = "$ n" ;}}if ($ nextpg) $ pagenav. = "next page"; else $ pagenav. = 'next page'; if ($ nextpg) $ pagenav. = "Last page"; else $ pagenav. = 'end page'; if ($ showselect = 1) {// The drop-down navigation list. all page numbers are displayed cyclically: $ pagenav. = "Jump\ N "; for ($ I = 1; $ I <= $ lastpg; $ I ++) {if ($ I = $ page) $ pagenav. ="$ I\ N "; else $ pagenav. ="$ I\ N ";}$ pagenav. ="Page ";}}?>


Reply to discussion (solution)

Very good. Add to favorites first

Recent replies always prompt errors

The code posted by the poster seems incomplete. the query condition is estimated to be in another code. I just want a paging class. I can provide it. if necessary, I can send a private message to you.

Sales Order List

When I post code, I always prompt for errors and often cannot post them. This paging class can be paginated now, that is, there are no query conditions in the paging button link. how can I add the query conditions to the link?

How to Add query conditions ??

Does it have a $ url parameter?
It is used for this purpose.


How to Add query conditions ??

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.