tp3.2.3 Front-end volist loop problem
盛夏默忆
盛夏默忆 2020-04-07 12:02:26
0
1
1138

1.pngThe code in the picture wants to output columns and articles belonging to that column at the same time. It can output columns and articles, but it cannot control the fixed number of output for each column. The background limit can only control the total number of articles output. . I would like to ask how I can control each column to output fixed articles.

盛夏默忆
盛夏默忆

reply all(1)
盛夏默忆

The solution has been found. The control layer code is used incorrectly. I originally used the simplest select method. The two data tables were queried and output separately. The front-end code could not control the output. Use the foreach method to connect the two data in the control layer. If the table is output again, the control problem can be solved. You don’t need to use the template’s <if condition>, but it’s still a problem because you’re not familiar with your own code.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!