Please tell me how to add the query to the page number, and now the page number links are not added to the query criteria.
PHP Paging class source code
". ($totle? ($firstcount + 1): 0). " -". Min ($firstcount + $DISPLAYPG, $totle)." /$totle Records$page/$LASTPG page";} else{$pagenav = "";} If only one page jumps out of the function: if ($LASTPG <=1) return false;if ($PREPG) $pagenav. = "Home"; else $pagenav. = 'Home Page'; if ($PREPG) $pagenav. = "Previous page"; else $pagenav. = 'Previous PageThe IF ($shownum ==1) {$o = $showlvtao;//The total length of the median page count is an odd $u=ceil ($o/2);//based on the $o calculation of the single-sided page width $u$f= $page-$u;//Based on the current page $ CurrentPage and single-sided width $u calculates the starting number of the first page//str_replace (' {p} ',, $FN)//Replace the format if ($f <0) {$f = 0;} When the first page is less than 0 o'clock, the assignment is 0$n= $LASTPG;//The total number of pages, 20 pages if ($n <1) {$n = 1;} When the total is less than 1 o'clock, the assignment is 1if ($page ==1) {$pagenav. = '1';} else{$pagenav. = "1";} for ($i =1; $i <= $o; $i + +) {if ($n <=1) {break;} When the total number of pages is 1 o'clock $c= $f + $i;//start with $c to calculate if ($i ==1 && $c >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;} }if ($page = = $n && $n!=1) {$pagenav When the total number of pages is less than the page length. = ''. $n. '';} else{$pagenav. = "$n";}} if ($NEXTPG) $pagenav. = "Next page"; else $pagenav. = 'Next Page'; if ($NEXTPG) $pagenav. = "Last"; else $pagenav. = 'last page' If ($showselect ==1) {//drop-down Jump List, loop lists all page numbers: $pagenav. = "Jump to\ 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. Favorites First
Recent replies always prompt for errors
The code of the landlord does not seem to be complete, the query condition estimates in other code, just want a paging class, I can provide, if necessary can be a private messages with me.
Sales order List
I paste code always prompt error, often can't put up, this page class can now be paged, is the paging button link inside no query conditions, I would like to ask how to add query conditions to the link inside
How to add a query condition??
Doesn't he have a $url parameter?
That's what it's for.
How to add a query condition??