just to let you know the site is incredibly slow opening for me right now. Maybe 30 seconds load time.
To answer your question briefly. I presume your news is stored in a database table and that table has an auto increment id so each news item has a unique identity (called something like newsid). If you make another table you can store any comments and the newsid (Unix time stamp too for time/date and the userid).
When you display the news article you have the id of the article to display so you also look in the comments table for any comments with the same news id and display them too (ordered by the timestamp).
Add a form to the article page and store the comments with the relevant newsid.
You join tables together with numerical ids ( and indexed columns for speed) and organise your structure around those ids.
so user id 123 has an comment on newsarticle id 789.
The page has an address like
news table has
newsid title content
789 clan stuff Lots of stuff
comments table has
user table has
commentid newsid userid comment
1 789 123 Yeaaa, clan stuff!
So from the newsid in the URL I can get the article content with a simple
I can get the comments too with a similar select
select * from news where newsid=789
from this I can return the userid and et the users info.
select * from comments where newsid=789
Once you get this very basic way of doing it working you have to consider a few more things.
The security of the statements and sanitizing all user inputs and URL string input.
Sanitize your input (google for it) or I could simply change the url to
and you table data is gone!!
news.php?newsid=789';drop table users
Next for efficiency, joining tables together to do it all in a single SQL statement.