How do I make replies to comments? (PHP)
        Posted  
        
            by jpjp
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by jpjp
        
        
        
        Published on 2010-05-28T23:15:18Z
        Indexed on 
            2010/05/28
            23:22 UTC
        
        
        Read the original article
        Hit count: 232
        
I want to create something like reddit where they have comments, then replies to the comment, then reply to the reply.
What type of database structure do they use so:
1. they keep track of all the comments to a posting
2. a reply to a comment
3. a reply to a reply
All I have right are is just a posting and a bunch of comments relating to it like..
POSTING TABLE
posting_id | title | author
COMMENTS TABLE
comment_id | posting_id | comment
REPLIES TABLE
????
How do I relate the comments to the replies? What type of css do they use to give replies that indented space?
© Stack Overflow or respective owner