Dear friends, I am a newbie. I want to click the four boxes in all my articles, each box limits the output of five data entries. to use groupby to limit the number of outputs in each group, it seems that the main title and secondary title cannot be output in html, I have a judgment that if the parent level of the secondary title is equal to the primary title...
Dear friends, I am a newbie. I want to click all articles and output four boxes. each box limits the output of five data entries.
I want to use group by to limit the number of outputs of each group, but it seems that it cannot be implemented.
Html outputs the primary title and the secondary title. I have a judgment that if the parent level of the secondary title is equal to the primary title, the offset of the volist cannot be used, however, if cannot be set later, what should I do?
Reply content:
Dear friends, I am a newbie. I want to click all articles and output four boxes. each box limits the output of five data entries.
I want to use group by to limit the number of outputs of each group, but it seems that it cannot be implemented.
Html outputs the primary title and the secondary title. I have a judgment that if the parent level of the secondary title is equal to the primary title, the offset of the volist cannot be used, however, if cannot be set later, what should I do?
I think your problem is mysql Query, not php.
Mysql groups obtain the first N records of each group.