0
A
回答
0
Select comment_content from table where comment_parent != 0;
然後使用PHP顯示您想要的結果。
0
根據您想有多深去......但這裏是1線程例子做1個查詢
SELECT * FROM `comment` a LEFT JOIN `comment` b ON a.comment_id = b.comment_id WHERE a.comment_parent = 0
然後使用PHP來選擇羯羊父評論的變化和顯示。
但它可能會更好地做到這一點在多個速度查詢。你將需要做一些基準,以確保
3
相關問題
- 1. PHP作爲註釋顯示
- 2. 線程視圖中的分層註釋系統:PHP和MySQL
- 3. 顯示註釋
- 4. Kendo線條圖註釋未顯示
- 5. 使用MYSQL和PHP循環發佈帖子和相關注釋
- 6. 訂購線程/嵌套註釋 - PHP
- 7. Enum.GetName顯示註釋
- 8. 多個註釋不顯示,與PHP
- 9. mkmapview顯示指定框架中的路線和註釋
- 10. 使用php和html添加註釋
- 11. PoEdit和PHP註釋
- 12. DLL注入,線程和內存釋放
- 13. 如何使Visual Studio intellisense顯示XML註釋的註釋部分?
- 14. 當用戶註銷時使用The_Comments顯示註釋gem
- 15. 使用PHP和MySQL註冊和會話
- 16. PHP線程解釋
- 17. 多行註釋和新線
- 18. 顯示YouTube註釋 - iOS App
- 19. mapview不顯示註釋點
- 20. Mapkit顯示註釋區域
- 21. mapkit顯示註釋默認
- 22. Html.fromHtml顯示註釋行
- 23. 顯示註釋Jinja2-Python
- 24. 顯示無Mapview註釋
- 25. VS2012 Find Shelvsets,顯示註釋
- 26. 顯示註釋asp mvc
- 27. 自動顯示MapKit註釋
- 28. MySQL列註釋和性能
- 29. 條件顯示PHP和MySQL
- 30. MySQL和PHP顯示錯誤
看到http://stackoverflow.com/questions/597882/how-do-i-implement-threaded-comments,http://stackoverflow.com/questions/1442993/how-to-build -th -aded-comments-with-a-1-or-2-queries,http://stackoverflow.com/questions/1260878/mysql-structure-for-comments-and-comment-replies – 2009-11-21 15:29:42