PHP link excelsql paging problems

Source: Internet
Author: User
PHP link excelsql paging the following is a PHP link excel program. if I want to set pagination, what should I do? Selecttop11 * from [Sheet1 $]; in this way, 11 records can be selected for the next time, but what should I do after 11 records? Please help me. PHPcode & lt ;? Php $ co PHP link excel SQL paging
Below is the PHP link excel program. if I want to set pagination, what should I do? Select top 11 * from [Sheet1 $]; in this way, 11 records can be selected for the next time, but what should I do after 11 records? Please help me.

PHP code
    
  Open ($ connstr); $ SQL = "select top 11 * from [Sheet1 $]"; $ rs = $ conn-> execute ($ SQL ); if ($ rs-> eof | $ rs-> bof) {echo "no book information! ";} Else {while (! $ Rs-> eof) {?>        
  Fields (number); echo $ fields-> value;?>        
  Fields (title); echo $ fields-> value;?>        
  Fields (datetime); echo $ fields-> value;?>        
  Fields (sale); echo $ fields-> value;?>                    
  Movenext ;}}?>


------ Solution --------------------
$ Conn = new com ("adodb. connection ");

You can use SQL statements for database operations.

In fact, you can use the PHPExcel class for excel operations.

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.