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();
}
?>
<?= $row['headline'] ?>
Author: <?= $row['author'] ?>Date: <?= $row['create_date'] ?>
<?= $row['body'] ?>
Let me know if you know how to do this or know a simple way to integrate it!