I hope this is the right place for posting this. If it's not, sorry.
I was wondering if anyone could show me a good resource that could help in the design of a comments system. Basically I want something where a user can comment on another user's content. I'm just not sure how to go about setting up the db's and stuff. Also, I want a reply to another's comment to appear indented like it would be in a thread. Thank you.
Comments
Moderator: General Moderators
Re: Comments
Yeah, this is unfortunately the incorrect area. But I can still give you some hints.
All you have to do is make a database. Then the script asks for input and also displays comments at the same time. Just escape the string and insert.
To make quote thingies like :
All you have to do is make a database. Then the script asks for input and also displays comments at the same time. Just escape the string and insert.
To make quote thingies like :
either use a div with margins around it and a border or use blockquote.This
Re: Comments
I appreciate the reply. I was at a loss for how to recall the correct comments to the correct pages. Which sounds dumb, but I thought I would do it using id's. So each time someone posts a comment, the storyid is saved to it, then I just recall all the comments with the same id.
Re: Comments
Right, each comment record would have a foreign key for the id of the content the user is commenting on. You would SELECT from the comments table Where story_id = x, probably order by a datetime field