PHP implements data display by page, and php implements page display by page _ PHP Tutorial

Source: Internet
Author: User
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...

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.