Need to add commenting to each news segment

So every news article has an id, so I need the comments to be sorted by those id’s so there can be different comments that associate with different news segments. Trying to figure out how to go about this. This is how each article is called upon to display in my news panel in http://www.wesleywalz.com/news.php.

[php]<?
////////////////////////////////
// Script Name: show_news.php //
////////////////////////////////
$message2 = “News story not available”;

if ( !is_numeric($id) ) {

exit();

}
include(‘config_news.php’);

$query = "SELECT * FROM news_articles ";
$query .= “WHERE id = $_GET[id] AND status =‘publish’” ;
$results = mysql_query($query);

$row = mysql_fetch_array($results);
if ( !$row ) {

exit();

}
?>

Hello

<?= $row['headline'] ?>

Author: <?= $row['author'] ?>
Date: <?= $row['create_date'] ?>

<?= $row['body'] ?>

[/php]

Let me know if you know how to do this or know a simple way to integrate it!

Not spamming, this may help with helping me.

I created a new table for these comments. The database table name is contact and I made 4 elements.
id, name, body, and email

So now I just have to figure out how to do this. Haha

Sponsor our Newsletter | Privacy Policy | Terms of Service