I have one table for posting new articles and the content of the table is printed using a while loop.
Now I want the viewers to be able to comment on the article so I created another table for comments and a form under article in the while loop, but whenever anybody comments on the article the comment is showed with all the articles.
Because article and comments are in one while loop and there is no relationship between the tables. tables are as follows:
content_posts( id int primary auto, subject varchar, postby varchar, date date, content varchar )
comments( id int primary auto, name varchar, email varchar, body varchar )