$resultName = @mysql_query("SELECT topicName, topicDate FROM topics");
while ($row = mysql_fetch_array($resultName)) {
$topicName = $row["topicName"];
$topicDate = $row["topicDate"];
echo "
<tr><td><a href='$PHP_SELF?viewTopic=1'>$topicName</a></td><td>$topicDate</td></tr>
";
}
Is this what you want?