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 ??