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.