Thinkphp3.2 how to disable display of paging content

Source: Internet
Author: User
Thinkphp3.2 the page content is not displayed $ count $ User-& gt; count (); $ pagenew & nbsp; ThinkPage ($ count, 1); dump ($ page ); $ show & nbsp; $ page-& gt; show (); display output by page $ orderby [id] desc; $ list & nbsp; $ thinkphp3.2 the page content is not displayed
$ Count = $ User-> count ();
$ Page = new \ Think \ Page ($ count, 1 );
// Dump ($ page );
$ Show = $ page-> show (); // display the output by page
$ Orderby ['id'] = 'desc ';
$ List = $ User-> order ($ orderby)-> limit ($ page-> firstRow. ','. $ page-> listRows)-> select ();
Dump ($ list );
$ This-> assign ('list', $ list );
$ This-> assign ('page', $ show );
The paging effect came out, for example: 123>
But why is html data not displayed ,?? Then I dump ($ list) and return it to boolean false ....
A newbie has no similar problem on the internet. Is it because the data I read in html is incorrect? I used this to read it ..
Thank you for your guidance.
------ Solution --------------------
There are no visual errors. you can print out the SQL statement to see what it is and execute it in mysql.
------ Solution --------------------
Run your SQL statement in SQL to check whether the SQL statement is successful. if the SQL statement is unsuccessful, no data is displayed.
------ Solution --------------------
It seems that your mysql Query statement is incorrect, and the data cannot be found.

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.