the news system just stopped working, i have an anther set of files of this system for someone else and it works fine, i tried taking those files and using them but it doesnt work.
heres the file code:
<?php
include 'dbconnect.php';
$result = mysql_query("select * from news order by id desc limit 10");
while($r=mysql_fetch_array($result))
{
$id=$r["id"];
$title=$r["title"];
$newstext=$r["newstext"];
$date=$r["date"];
$icon=$r["icon"];
$username=$r["name"];
$news = nl2br("$newstext");
$count = mysql_query("SELECT * FROM `comments` WHERE commentid = '$id'");
$comments = mysql_num_rows($count);
echo "<table width='408px' border='0' cellspacing='0'>
<tr>
<td style='border-bottom: 1px dotted #CFCFCF'><b>$title</b><br>
Reported by: $username on $date</td>
</tr>
<tr>
<td style='border-bottom: 1px dotted #CFCFCF'>$news</td>
</tr>
<tr>
<td style='text-align: right'><a href=\"news.php?id=$id\">$comments Comments</a></div> </td>
</tr>
</table>
<br>";
}
?>
