Answer the question
In order to leave comments, you need to log in
How to organize a selection of comments from a table?
There is a table, it stores comments to articles,
id Первичный
project
date
autor
text
answer
Answer the question
In order to leave comments, you need to log in
If the depth of comments is limited, then you can join the table with itself as many times as you need. If not, you can pull out all the comments of a particular article (there will hardly be too many of them) with one request - and build a tree already in php / python (well, or on what you wrote the backend).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question