Nieuw lid |
|
<?php
$query = mysql_query("SELECT topicstart, topicid, topicname FROM topic ORDER BY topicstart DESC LIMIT 0, 10", $conn);
while ($row = mysql_fetch_array($query)) {
$topicid = $row['topicid'];
$topicname = $row['topicname'];
$date = $row['topicstart'];
echo "Anonymous user has started a topic named: <a href='viewtopic.php?topicid=$topicid>$topicname</a> on $date<br />";
}
?>
<?php $query = mysql_query("SELECT topicstart, topicid, topicname FROM topic ORDER BY topicstart DESC LIMIT 0, 10", $conn); $topicid = $row['topicid']; $topicname = $row['topicname']; $date = $row['topicstart']; echo "Anonymous user has started a topic named: <a href='viewtopic.php?topicid=$topicid>$topicname</a> on $date<br />"; } ?>
ik heb deze code op 3 andere plaatsen al gebruikt, en ze werken perfect. En zoals ik al zei krijg ik wel resultaten. |