0

I am trying to make a php Database Driven commenting script.I have to fetch comment and name from the Database according to page id.Suppose i have to fetch comments against the id 45.Then the "fetchcomment.php?id=45".It should fetch all the comments One by one Under the Page ???How to do this.The comment table will have 3 columns
1>id .
2>name .
3>Comment.

I need help in the Graphics section also to divide the comments and Name and diierent section.

3
Contributors
3
Replies
5
Views
6 Years
Discussion Span
Last Post by debasishgang7
0

I am trying to make a php Database Driven commenting script.I have to fetch comment and name from the Database according to page id.Suppose i have to fetch comments against the id 45.Then the "fetchcomment.php?id=45".It should fetch all the comments One by one Under the Page ???How to do this.The comment table will have 3 columns
1>id .
2>name .
3>Comment.

I need help in the Graphics section also to divide the comments and Name and diierent section.

You want to grab every comment from that id? You need another column for whatever id you're grabbing from.
Add another column called page_id or something. Then grab the page id and compare it with the page_id in your select statement to filter your results.

0

A date/time col is also useful
Maybe a status col as well - to show/hode comment, if you're moderating them (and you should if it's your site).

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.