PHP displays data by page, and php displays data by page. PHP implements paging data display. php implements paging display which is frequently used in background management. paging display facilitates management of large amounts of data. The instance code is as follows :! DOCTYPEhtm PHP displays data by Page and php displays data by page.
Paging is a frequently used function in background management, which facilitates the management of a large amount of data.
The instance code is as follows:
User list
"; Echo $ row ['name']."
"; Echo $ row ['email ']."
"; Echo $ row ['password']."
"; Echo $ row ['tel']."
";}For ($ I = 1; $ I <=$ pageCount; $ I ++) {echo" $ I '> $ I ";}?>
When there is a large amount of data, the above method cannot be used.
"; Echo $ row ['name']."
"; Echo $ row ['email ']."
"; Echo $ row ['password']."
"; Echo $ row ['tel']."
";}If ($ pageNow> 1) {$ prePage = $ pageNow-1; echo "$ prePage '> pre";} if ($ pageNow <$ pageCount) {$ nextPage = $ pageNow + 1; echo "$ nextPage '> next"; echo "current page {$ pageNow}/total page {$ pageCount}";} echo"
";?>
Paging is a frequently used function in the background management, which facilitates the management of a large amount of data. The instance code is as follows :! DOCTYPE htm...