Posting Comments in different topics

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
rolyestemonio
Forum Newbie
Posts: 19
Joined: Fri Jun 18, 2010 10:30 pm
Location: Metro Manila - Paranaque City
Contact:

Posting Comments in different topics

Post by rolyestemonio »

Hi Guys...can anyone help me out? I just to have the list of topics.
Example:

About Nature
About man
About Society

Now, this is what i want to do...if I will go to each of it. I can post comment of each of them. And when I view one of them all the comments other of each topic will be display.
Can anyone help me? I am happy to hear your answer guys. Please help me. I am confused of this. Thanks in advance.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: Posting Comments in different topics

Post by pickle »

Its pretty much impossible for us to help without more detailed information.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
User avatar
Jonah Bron
DevNet Master
Posts: 2764
Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California

Re: Posting Comments in different topics

Post by Jonah Bron »

So basically you just want people to be able to post a comment under a category?
rolyestemonio
Forum Newbie
Posts: 19
Joined: Fri Jun 18, 2010 10:30 pm
Location: Metro Manila - Paranaque City
Contact:

Re: Posting Comments in different topics

Post by rolyestemonio »

What i want to do is just when you select for example "About Nature" you can post a comment there. And the comment will under to that title of course. And also with the other topics. And if you will click one of the topics all of the comments to that certain topics will display. By the way, I have table "comments" and fields "Name", "Comment" and "Date". Do I need to have "post" table to do it?

Jonah Bron: yap, your right just what happen in this forum that you will able to see more topics and under to it you can post comments or suggestions.
User avatar
Jonah Bron
DevNet Master
Posts: 2764
Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California

Re: Posting Comments in different topics

Post by Jonah Bron »

Oh, so more like a forum? You want people to be able to create new topics?
rmm
Forum Newbie
Posts: 1
Joined: Mon Aug 15, 2011 10:10 pm

Re: Posting Comments in different topics

Post by rmm »

what is the algorithm for that?
phphelpme
Forum Contributor
Posts: 261
Joined: Sun Nov 21, 2010 3:32 pm

Re: Posting Comments in different topics

Post by phphelpme »

Its not as simple as that. We need to see what you have already as we are just guessing and we cant help you truly if we cant see what you see. There is no specific algorithm for it apart from forms which they fill in, that gets submitted to a controller.php file maybe to handle the request. Within that request it inserts a new topic under whatever category has been chosen in your database and each comment is then given a category/topic id so that when the topic is loaded only those specific comments are displayed.

You need to be more specific and provide what you have already.

Otherwise check out an already existing forum so you can use it right away such as bbPress.

Best wishes
Post Reply