"; $rood = ""; $groen = ""; $blauw = ""; include("dbconnect.php"); include("functions.php"); $sql = "SELECT id,titel,bericht,datum,memnumber FROM topics WHERE id = '" . $_GET['id'] . "'"; $res = mysql_query($sql); $row = mysql_fetch_array($res); $nummertje = $row['memnumber']; $sqlm = "SELECT * FROM w_webmasters WHERE number = '$nummertje'"; $resm = mysql_query($sqlm); if (mysql_num_rows($resm) >= 1) {$rowm = mysql_fetch_array($resm); $webmastersname = $rowm['webmastersname'];} else {$webmastersname = "";} print ""; print "
"; print "
"; print "

".$blauw."WebmastersLookup Forum Replies

"; print ""; } } else { echo $blauw."There are no replies."; } if (!$membernumber) {print "";} else {echo "";} echo ""; Print "
"; $row['bericht'] = nl2br($row['bericht']); echo $blauw."Back to Forum topics

"; echo "Topic: " .$blauw. $row['titel'] . "".$blauw." by $webmastersname".$blauw." on " . $row['datum'] . "

"; echo $blauw.$row['bericht'] . "

"; echo "".$blauw."Replies:
"; $csql = "SELECT memnumber,bericht,datum FROM replys WHERE tid = '" . $_GET['id'] . "'"; $cres = mysql_query($csql); if (mysql_num_rows($cres) >= 1) { while ($row = mysql_fetch_array($cres)) {$nummertje = $row['memnumber']; $sqlm = "SELECT * FROM w_webmasters WHERE number = '$nummertje'"; $resm = mysql_query($sqlm); if (mysql_num_rows($resm) >= 1) {$rowm = mysql_fetch_array($resm); $webmastersname = $rowm['webmastersname'];} else {$webmastersname = "";} echo "By $webmastersname on " . $row['datum'] . "
"; $row['bericht'] = htmlentities($row['bericht']); $row['bericht'] = nl2br($row['bericht']); echo $blauw.$row['bericht'] . "


".$blauw."Webmasters: Login to add a reply.

".$blauw."Add a reply

".$blauw."Back to Forum topics

"; print "
"; print "
"; print "".$groen."WebmastersLookup Forum replies

".$groen."Click on the webmastersname to see his profile, click on a reply to add a reply. Login first before you can add a reply.
"; ?>