Something
public text v1 · immutable<?php
include ("config.php");
$query = mysql_query("SELECT * FROM news ORDER BY id DESC")
or die(mysql_error());
$row = mysql_fetch_array( $query );
if (empty($row['id']))
echo "Sorry, there is no news to display currently.";
else
{
echo "News is as follows:<br /><br />";
}
while ($row = mysql_fetch_assoc($query)) {
echo "Posted on: " . $row['timestamp'] . " by " . $row['user'] . "<br /><br />" . $row['article'] ;
}
?>