echo "</td><td>$cat</td><td>" . date("d-m-y" ,$row[timestamp]) . "</td><td align=center>$approved</td><td align=center><a href=\"?action=editcomments&pid=$row[id]\"><u>$numcomments</u></a></td><td align=center><input type=\"checkbox\" value=\"$row[id]\" id=\"selectedposts[]\" name=\"selectedposts[]\">\n";
echo "</td><td>$cat</td><td>" . date("d-m-y" ,$row[timestamp]) . "</td><td align=center>$approved</td><td align=center>\n";
if($row['allowcomments'] == "0"){
$numcomments = "Not Allowed";
echo "$numcomments\n";
}else{
$numcomments = mysql_num_rows($query);
echo "<a href=\"?action=editcomments&pid=$row[id]\"><u>$numcomments</u></a>\n";
}
echo "</td><td align=center><input type=\"checkbox\" value=\"$row[id]\" id=\"selectedposts[]\" name=\"selectedposts[]\">\n";