I would like to ask a question about the tp3.2 paging class.
phpcn_u1546
phpcn_u1546 2017-08-19 14:18:24
0
1
1212

QQ截图20170819141125.png










##That's it, and now I think After adding the content of the comments, I should go to another table to query the corresponding comment content through each piece of data. Then, how should I change the code? What I don't understand is how to perform another query and output it to the view at the same time without causing paging confusion. Is there anyone who can help me? If my question is not clear, please let me know.

phpcn_u1546
phpcn_u1546

reply all(1)
逸先生

On the premise that these logics do not change, it is recommended to use the method of looping $list to match multiple corresponding data for each piece of data. You can append $list['$k] without affecting paging and search. The second option is to organize the sql statement yourself, and use nested queries and other methods to directly query the corresponding data. You have to write paging and other things yourself, and you cannot use tp to encapsulate them

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template