search

Home  >  Q&A  >  body text

I would like to ask a question about the tp3.2 paging class.

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_u1546phpcn_u15462730 days ago1239

reply all(1)I'll reply

  • 逸先生

    逸先生2017-08-24 10:44:09

    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

    reply
    0
  • Cancelreply