Skip to content Skip to sidebar Skip to footer

Want To Know Whether This Is A Html, Php Or Javascript Issue

I want to id each comment so that where any member comment on a comment, the INSERT and the SELECT knows where to display the comments, who commented in a comment and in what comme

Solution 1:

You will need to modify the database table that holds your comments to add a "parent" column. A top-level comment will have a parent ID of 0, meaning it is not a response to any other comment.

Responses will have the ID of the top-level comment in their parent column.

After modifying your table, you will need to modify your PHP code to recognize responses to top-level comments, and modify your HTML to display them appropriately.


Post a Comment for "Want To Know Whether This Is A Html, Php Or Javascript Issue"