since comments always have it, you can choose to show the 5 best comments (which I know how), and if there are more than 5, you can click the link and the following 5 comments will be displayed in it. The problem is that I don't know what the code should look like for the next 5.
The best idea of ββwhat I say is, let's say I have 10 comments, I use
SELECT * FROM news ORDER BY ID DESC LIMIT 5
which will show TOP 5 comments, say comments with ID 10,9,8,7,6
but what if I need comments with ID 5,4,3,2,1?
Crays source
share