##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.
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