lijn 39: <?php echo '<tr><td height="43" width="321"><a href="replys.php?id=" . $row['id'] . "">" . $row['titel'] . "</a></td><td height="43" width="123">" . $row['naam'] . "</td><td height="43" width="168">" . $row['datum'] . "</td><td height="43" width="54">" . $msg . "</td></tr>';
?>
$sql = "SELECT id,titel,datum FROM topics ORDER BY id DESC";
$res = mysql_query($sql);
echo "<b>Topic overzicht</b><p>";
if (mysql_num_rows($res) >= 1)
{
while ($row = mysql_fetch_array($res))
{
// het aantal reacties weergeven
$nsql = "SELECT tid FROM replys WHERE tid = '" . $row[id] . "'";
$nres = mysql_query($nsql);
$msg = mysql_num_rows($nres);
$row['datum'] = substr($row['datum'], 0, 10);
echo '<table border="1" width="726" height="84" cellspacing="1" cellpadding="0" bordercolor="#800000">
<tr>
<td height="43" width="321">
<p align="center">Titel:</td>
<td height="43" width="123">
<p align="center">Door:</td>
<td height="43" width="168">
<p align="center">Op:</td>
<td height="43" width="54">
<p align="center">Reacties:</td>
</tr>';
echo '<tr><td height="43" width="321"><a href="replys.php?id=" . $row['id'] . "">" . $row['titel'] . "</a></td><td height="43" width="123">" . $row['naam'] . "</td><td height="43" width="168">" . $row['datum'] . "</td><td height="43" width="54">" . $msg . "</td></tr>';
echo '</table>';