dit is de pagina
PHP
<?
include("global.php");
include("header.php");
if(isset($_GET['actie']) AND isset($_GET['bericht']) AND $_GET['actie'] == "verwijderen"){
if(isset($_GET['bevestiging']) AND $_GET['bevestiging'] == TRUE){
$query = mysql_query("SELECT * FROM forum_reacties WHERE id='".$_GET['bericht']."'");
$row = mysql_fetch_assoc($query);
if($row['auteur'] == $_COOKIE['id'] OR functie() == 2 OR functie() == 3 OR functie() == 4){
mysql_query("DELETE FROM forum_reacties WHERE id='".$_GET['bericht']."'");
begintabel("Succesvol verwijderd");
echo "Uw bericht is succesvol verwijderd uit de topic";
eindetabel();
echo "<br>";
postsminus($row['auteur']);
}
} else {
begintabel("Verwijderen bevestigen");
$topic = htmlspecialchars(stripslashes($_GET['topic']));
$bericht = htmlspecialchars(stripslashes($_GET['bericht']));
echo "<form action='forum.php?pagina=topic&topic=".$topic."&actie=verwijderen&bericht=".$bericht."&bevestiging=1' method='POST'>
Weet u zeker dat u dit bericht wilt verwijderen?<br><br>
<input type='submit' value='Bericht verwijderen'></form>";
eindetabel();
echo "<br>";
}
}
if(isset($_GET['actie']) AND isset($_GET['bericht']) AND $_GET['actie'] == "bewerken2"){
if(isset($_GET['bericht']) AND eregi("t", $_GET['bericht']) == TRUE){
$bericht = str_replace("t", "", $_GET['bericht']);
$query = mysql_query("SELECT * FROM forum_topics WHERE id='".$bericht."'");
$row = mysql_fetch_assoc($query);
} else {
$query = mysql_query("SELECT * FROM forum_reacties WHERE id='".$_GET['bericht']."'");
$row = mysql_fetch_assoc($query);
}
if((($row['auteur'] == $_COOKIE['id']) OR (functie() == 2) OR (functie() == 3) OR (functie() == 4))){
if(isset($_GET['bericht']) AND eregi("t", $_GET['bericht']) == TRUE){
mysql_query("UPDATE forum_topics SET bericht='".$_POST['bericht']."' WHERE id='".$bericht."'");
begintabel("Succesvol bewerkt");
echo "Uw topic is succesvol bewerkt";
eindetabel();
echo "<br>";
echo "<meta http-equiv=\"refresh\" content=\"0; URL=".$_SERVER['PHP_SELF']."?pagina=topic&topic=".$_GET['topic']."#".$_GET['bericht']."\">";
} else {
mysql_query("UPDATE forum_reacties SET bericht='".$_POST['bericht']."' WHERE id='".$_GET['bericht']."'");
begintabel("Succesvol bewerkt");
echo "Uw bericht is succesvol bewerkt";
eindetabel();
echo "<br>";
echo "<meta http-equiv=\"refresh\" content=\"0; URL=".$_SERVER['PHP_SELF']."?pagina=topic&topic=".$_GET['topic']."#".$_GET['bericht']."\">";
}
}
}
if(isset($_GET['pagina']) AND $_GET['pagina'] == "nieuwetopic"){
if(isset($_GET['cat']) AND $_GET['cat'] == 9 AND ((functie() == 2) OR (functie() == 3) OR (functie() == 4))){
$query = mysql_query("SELECT * FROM forum_cats WHERE id='".$_GET['cat']."'");
$aantal = mysql_num_rows($query);
$cat = mysql_fetch_assoc($query);
if($aantal == TRUE AND ingelogd() == TRUE){
if(isset($_GET['actie']) AND isset($_GET['cat']) AND $_GET['actie'] == "controleer" AND !empty($_POST['onderwerp']) AND !empty($_POST['bericht'])){
postsplus($_COOKIE['id']);
mysql_query("INSERT INTO forum_topics(catid, auteur, onderwerp, bericht, datum, tijd, ip, laatstereactie) VALUES ('".$_GET['cat']."', '".$_COOKIE['id']."', '".$_POST['onderwerp']."', '".$_POST['bericht']."', '".date("d/m/y")."', '".date("H:i")."', '".$_SERVER['REMOTE_ADDR']."', '".time()."')");
$id = mysql_insert_id();
header("location:forum.php?pagina=topic&topic=".$id);
} else {
begintabel("Nieuwe topic aanmaken");
echo "<form name='nieuwetopic' action='".$_SERVER['PHP_SELF']."?pagina=nieuwetopic&actie=controleer&cat=".$_GET['cat']."' method='POST'>
Hieronder kunt u een nieuwe topic aanmaken. Let wel, raadpleeg eerst de zoekfunctie voordat u een vragende topic opent.<br><br>
Categorie: <input type='text' name='cat' value='".$cat['naam']."' disabled><br>
Onderwerp: <input type='text' name='onderwerp'><hr>
".icon("nieuwetopic", "bericht")."
<textarea name='bericht' rows='6' style='width: 100%;'></textarea>
<input type='submit' value='Open de topic!' style='width: 100%; height: 24px;' onClick=\"this.value='Moment geduld a.u.b...'\">";
eindetabel();
}
} else {
begintabel("Foutmelding");
echo "De door u gekozen categorie bestaat niet (meer)!";
eindetabel();
}
} elseif(isset($_GET['cat']) AND $_GET['cat'] != 9){
$query = mysql_query("SELECT * FROM forum_cats WHERE id='".$_GET['cat']."'");
$aantal = mysql_num_rows($query);
$cat = mysql_fetch_assoc($query);
if($aantal == TRUE AND ingelogd() == TRUE){
if(isset($_GET['actie']) AND isset($_GET['cat']) AND $_GET['actie'] == "controleer" AND !empty($_POST['onderwerp']) AND !empty($_POST['bericht'])){
postsplus($_COOKIE['id']);
mysql_query("INSERT INTO forum_topics(catid, auteur, onderwerp, bericht, datum, tijd, ip, laatstereactie) VALUES ('".$_GET['cat']."', '".$_COOKIE['id']."', '".$_POST['onderwerp']."', '".$_POST['bericht']."', '".date("d/m/y")."', '".date("H:i")."', '".$_SERVER['REMOTE_ADDR']."', '".time()."')");
$id = mysql_insert_id();
header("location:forum.php?pagina=topic&topic=".$id);
} else {
begintabel("Nieuwe topic aanmaken");
echo "<form name='nieuwetopic' action='".$_SERVER['PHP_SELF']."?pagina=nieuwetopic&actie=controleer&cat=".$_GET['cat']."' method='POST'>
Hieronder kunt u een nieuwe topic aanmaken. Let wel, raadpleeg eerst de zoekfunctie voordat u een vragende topic opent.<br><br>
Categorie: <input type='text' name='cat' value='".$cat['naam']."' disabled><br>
Onderwerp: <input type='text' name='onderwerp'><hr>
".icon("nieuwetopic", "bericht")."
<textarea name='bericht' rows='6' style='width: 100%;'>".$row['bericht']."</textarea>
<input type='submit' value='Open de topic!' style='width: 100%; height: 24px;' onClick=\"this.value='Moment geduld a.u.b...'\">";
eindetabel();
}
} else {
begintabel("Foutmelding");
echo "De door u gekozen categorie bestaat niet (meer)!";
eindetabel();
}
} else {
begintabel("Foutmelding");
echo "U kunt in deze categorie geen topics openen!";
eindetabel();
}
} elseif(isset($_GET['actie']) AND isset($_GET['bericht']) AND $_GET['actie'] == "bewerken"){
begintabel("Bericht bewerken");
if(isset($_GET['actie']) AND isset($_GET['bericht']) AND $_GET['actie'] == "bewerken" AND eregi("t", $_GET['bericht']) == TRUE){
$bericht = str_replace("t", "", $_GET['bericht']);
$query = mysql_query("SELECT * FROM forum_topics WHERE id='".$bericht."'");
$aantal = mysql_num_rows($query);
$row = mysql_fetch_assoc($query);
} else {
$query = mysql_query("SELECT * FROM forum_reacties WHERE id='".$_GET['bericht']."'");
$aantal = mysql_num_rows($query);
$row = mysql_fetch_assoc($query);
}
if($aantal == TRUE AND ((isset($_COOKIE['id']) AND $row['auteur'] == $_COOKIE['id']) OR (functie() == 2 OR functie() == 3 OR functie() == 4))){
echo "<form name='bewerken' action='".$_SERVER['PHP_SELF']."?pagina=topic&topic=".$_GET['topic']."&actie=bewerken2&bericht=".$_GET['bericht']."' method='POST'>".icon("bewerken", "bericht")."Hieronder kunt u uw bericht wijzigen. Let wel op: eenmaal gewijzigd is niet meer te herstellen. Let dus goed op voordat u op de wijzigknop drukt.<br><br>
<textarea name='bericht' rows='6' style='width: 100%;'>".stripslashes(htmlspecialchars($row['bericht']))."</textarea>
<input type='submit' value='Wijzig het bericht' style='width: 100%; height: 24px;' onClick=\"this.value='Moment geduld a.u.b...'\">
</form>";
} else {
echo "Het bericht dat u wilt bewerken bestaat niet of is niet voor u bestemd!";
}
eindetabel();
} elseif(isset($_GET['pagina']) AND $_GET['pagina'] == "topic"){
$query = mysql_query("SELECT * FROM forum_topics WHERE id='".$_GET['topic']."'");
$aantal = mysql_num_rows($query);
$row = mysql_fetch_assoc($query);
$gesloten = $row['gesloten'];
if($gesloten == TRUE){
$status = " (Topic gesloten)";
} else {
$status = "";
}
if($aantal == FALSE){
begintabel("Fout bij openen");
echo "De door u geselecteerde topic bestaat niet (meer) en/of is gesloten...";
eindetabel();
} else {
if(isset($_GET['actie']) AND $_GET['actie'] == "reageer" AND isset($_POST['bericht']) AND !empty($_POST['bericht'])){
mysql_query("UPDATE forum_topics SET laatstereactie='".time()."' WHERE id='".$_GET['topic']."'");
mysql_query("INSERT INTO forum_reacties (topicid, auteur, bericht, datum, tijd, ip) VALUES ('".$_GET['topic']."', '".$_COOKIE['id']."', '".addslashes($_POST['bericht'])."', '".date("d/m/y")."', '".date("H:i")."', '".$_SERVER['REMOTE_ADDR']."')");
echo "Je Reactie is succesvol toegevoegd.<meta HTTP-EQUIV=\"Refresh\" content=\"1;URL=\forum.php?pagina=topic&topic=".$_GET['topic']."\">";
postsplus($_COOKIE['id']);
}
$query = mysql_query("SELECT * FROM forum_cats WHERE id='".$row['catid']."'");
$catname = mysql_fetch_assoc($query);
if(functie() >= "2"){
begintabel("Admin");
if($_GET['status'] == "sluit"){
mysql_query("UPDATE forum_topics SET gesloten='1' WHERE id = '".$_GET['topic']."'");
ob_start();
header("Location: forum.php?pagina=topic&topic=".$row['id']."");
ob_end_flush();
} elseif($_GET['status'] == "open"){
mysql_query("UPDATE forum_topics SET gesloten='0' WHERE id = '".$_GET['topic']."'");
ob_start();
header("Location: forum.php?pagina=topic&topic=".$row['id']."");
ob_end_flush();
} elseif($_GET['status'] == "delete"){
mysql_query("DELETE FROM forum_topics WHERE id='".$_GET['topic']."'");
ob_start();
header("Location: forum.php");
ob_end_flush();
} elseif($_GET['status'] == "mededeling"){
mysql_query("UPDATE forum_topics SET mededeling='1' WHERE id='".$_GET['topic']."'");
ob_start();
header("Location: forum.php?pagina=topic&topic=".$row['id']."");
ob_end_flush();
} elseif($_GET['status'] == "dmededeling"){
mysql_query("UPDATE forum_topics SET mededeling='0' WHERE id='".$_GET['topic']."'");
ob_start();
header("Location: forum.php?pagina=topic&topic=".$row['id']."");
ob_end_flush();
} elseif($_GET['status'] == "sticky"){
mysql_query("UPDATE forum_topics SET sticky='1' WHERE id='".$_GET['topic']."'");
ob_start();
header("Location: forum.php?pagina=topic&topic=".$row['id']."");
ob_end_flush();
} elseif($_GET['status'] == "dsticky"){
mysql_query("UPDATE forum_topics SET sticky='0' WHERE id='".$_GET['topic']."'");
ob_start();
header("Location: forum.php?pagina=topic&topic=".$row['id']."");
ob_end_flush();
}
if($row['gesloten'] == "1"){
echo'- <a href="forum.php?pagina=topic&topic='.$row['id'].'&status=open">Her open topic!</a><br>';
} else {
echo'- <a href="forum.php?pagina=topic&topic='.$row['id'].'&status=sluit">Sluit topic!</a><br>';
}
echo'- <a href="forum.php?pagina=topic&topic='.$row['id'].'&status=delete">Verwijder topic!</a><br>';
if($row['mededeling'] == "0"){
echo '- <a href="forum.php?pagina=topic&topic='.$row['id'].'&status=mededeling">Maak topic mededeling</a><br>';
} else {
echo '- <a href="forum.php?pagina=topic&topic='.$row['id'].'&status=dmededeling">Verwijder topic als mededeling!</a><br>';
}
if($row['sticky'] == "1"){
echo '- <a href="forum.php?pagina=topic&topic='.$row['id'].'&status=dsticky">Verwijder sticky</a>';
} else {
echo '- <a href="forum.php?pagina=topic&topic='.$row['id'].'&status=sticky">Voeg sticky toe</a>';
}
eindetabel();
echo'<br>';
}
begintabel("<a href='forum.php'>Forum index</a> > <a href='".$_SERVER['PHP_SELF']."?pagina=overzicht&id=".$row['id']."'>".$catname['naam']."</a> > ".lekubb($row['onderwerp']).$status);
if(ingelogd() == TRUE){
$opties1 = "<a href='reageer.php?pagina=topic&topic=".$_GET['topic'].""e=t".$row['id']."&actie=quote#quote'><img src='images/quote.jpg' border='0'></a>";
} else {
$opties1 = "";
}
if((isset($_COOKIE['id']) AND $_COOKIE['id'] == $row['auteur']) OR (functie() == 2) OR (functie() == 3) OR (functie() == 4)){
$opties2 = "<a href='".$_SERVER["PHP_SELF"]."?pagina=topic&topic=".$_GET['topic']."&actie=bewerken&bericht=t".$row['id']."'><img src='images/wijzigen.jpg' border='0'></a>";
} else {
$opties2 = "";
}
echo "<a name='t".$row['id']."'></a><table width='100%' cellpadding='5' cellspacing='0' border='0'>
<tr>
<td valign='top' width='120' style='border-top: 1px solid #696969; border-right: 1px solid #CCCCCC;'>".userinfo($row['auteur'])."</td>
<td valign='top' style='border-top: 1px solid #696969;'>".ubb($row['bericht'])."<br><br>".signature($row['auteur'])."</td>
</tr>
<tr>
<td width='120' style='border-top: 1px solid #CCCCCC; border-right: 1px solid #CCCCCC;'>".$row['datum']." | ".$row['tijd']."</td>
<td style='border-top: 1px solid #CCCCCC;'><p align='right'>".$opties1." ".$opties2."</p></td>
</tr>
</table>";
eindetabel();
echo "<br>";
$query = mysql_query("SELECT * FROM forum_reacties WHERE topicid='".$_GET['topic']."' ORDER BY id ASC");
$aantal = mysql_num_rows($query);
begintabel("Reacties - <a href=\"reageer.php?pagina=topic&topic=".$row['id']."\">Reageer</a>");
if($aantal == FALSE){
echo "<i>Er zijn nog geen reacties geplaats op '".lekubb($row['onderwerp'])."'";
} else {
while($row = mysql_fetch_assoc($query)){
if(ingelogd() == TRUE){
$opties1 = "<a href='reageer.php?pagina=topic&topic=".$_GET['topic'].""e=".$row['id']."&actie=quote#quote'><img src='images/quote.jpg' border='0'></a>";
} else {
$opties1 = "";
}
if((isset($_COOKIE['id']) AND $_COOKIE['id'] == $row['auteur']) OR (functie() == 2) OR (functie() == 3) OR (functie() == 4)){
$opties2 = "<a href='".$_SERVER["PHP_SELF"]."?pagina=topic&topic=".$_GET['topic']."&actie=bewerken&bericht=".$row['id']."'><img src='images/wijzigen.jpg' border='0'></a> <a href='".$_SERVER["PHP_SELF"]."?pagina=topic&topic=".$_GET['topic']."&actie=verwijderen&bericht=".$row['id']."'><img src='images/verwijderen.jpg' border='0'></a>";
} else {
$opties2 = "";
}
echo "<a name='".$row['id']."'></a><table width='100%' cellpadding='5' cellspacing='0' border='0'>
<tr>
<td valign='top' width='120' style='border-top: 1px solid #696969; border-right: 1px solid #CCCCCC;'>".userinfo($row['auteur'])."</td>
<td valign='top' style='border-top: 1px solid #696969;'>".ubb($row['bericht'])."<br><br>".signature($row['auteur'])."</td>
</tr>
<tr>
<td width='120' style='border-top: 1px solid #CCCCCC; border-right: 1px solid #CCCCCC;'>".$row['datum']." | ".$row['tijd']."</td>
<td style='border-top: 1px solid #CCCCCC;'><p align='right'>".$opties1." ".$opties2."</p></td>
</tr>
</table>";
}
}
eindetabel();
echo "<br>";
if(ingelogd() == TRUE){
echo "<br>";
begintabel("Snel Reageren:");
if(isset($_GET['actie']) AND $_GET['actie'] == "quote" AND isset($_GET['quote']) AND eregi("t", $_GET['quote']) == TRUE){
$quote = str_replace("t", "", $_GET['quote']);
$query = mysql_query("SELECT * FROM forum_topics WHERE id='".$quote."'");
$row = mysql_fetch_assoc($query);
$bericht = $row['bericht'];
$bericht = preg_replace('_\[quote\](.*?)\[/quote\]_ise',"", $bericht);
$bericht = stripslashes($bericht);
$bericht = trim($bericht);
$bericht = "[quote]".$bericht."[/quote]\n";
} elseif(isset($_GET['actie']) AND $_GET['actie'] == "quote" AND isset($_GET['quote'])){
$query = mysql_query("SELECT * FROM forum_reacties WHERE id='".$_GET['quote']."'");
$row = mysql_fetch_assoc($query);
$bericht = $row['bericht'];
$bericht = preg_replace('_\[quote\](.*?)\[/quote\]_ise',"", $bericht);
$bericht = stripslashes($bericht);
$bericht = trim($bericht);
$bericht = "[quote]".$bericht."[/quote]\n";
} else {
$bericht = "";
}
if($gesloten == TRUE && functie() < 2){
echo "De topic is gesloten. Reageren is niet meer mogelijk.";
} else {
echo "<a name='quote'></a><form name='reageren' action='".$_SERVER['PHP_SELF']."?pagina=topic&topic=".$_GET['topic']."&actie=reageer' method='POST'>
<center><textarea name='bericht' rows='6' style='width: 80%;'>".stripslashes(htmlspecialchars($bericht))."</textarea>
<input type='submit' value='Verzend dit bericht' style='width: 80%; height: 24px;' onClick=\"this.value='Moment geduld a.u.b...'\">
</form></center>";
}
eindetabel();
}
}
} elseif(isset($_GET['pagina']) AND $_GET['pagina'] == "overzicht"){
$query = mysql_query("SELECT * FROM forum_cats WHERE id='".$_GET['id']."'");
$catname = mysql_fetch_assoc($query);
begintabel("Forum > ".$catname['naam']);
echo "<p align='right'><b><a href='".$_SERVER['PHP_SELF']."'>Forumindex</a> ";
if(ingelogd() == TRUE){
if(isset($_GET['id']) AND $_GET['id'] == 9 AND ((functie() == 2) OR (functie() == 3) OR (functie() == 4))){
echo "| <a href='".$_SERVER['PHP_SELF']."?pagina=nieuwetopic&cat=".$catname['id']."'>Topic openen</a></b>";
} elseif(isset($_GET['id']) AND $_GET['id'] != 9){
echo "| <a href='".$_SERVER['PHP_SELF']."?pagina=nieuwetopic&cat=".$catname['id']."'>Topic openen</a></b>";
}
echo "<hr>";
}
echo "<table width='100%' border='0' cellpadding='3' cellspacing='0'>
<tr>
<td bgcolor='#D3ECA0' width='10'></td>
<td bgcolor='#D3ECA0' width='225'><b>Onderwerp</b></td>
<td bgcolor='#D3ECA0' width='125'><b>Auteur</b></td>
<td bgcolor='#D3ECA0' width='75'><b>Reacties</b></td>
<td bgcolor='#D3ECA0' ><b>Laatste reactie</b></td>
</tr>";
$query = @mysql_query("SELECT * FROM forum_topics WHERE catid='".$_GET['id']."' ORDER BY id DESC");
$aantal = @mysql_num_rows($query);
if($aantal == FALSE){
echo "<tr>
<td width='10'></td>
<td><i>Geen topics gevonden...</i></td>
<td></td>
</tr>";
} else {
while($row = mysql_fetch_assoc($query)){
$query2 = mysql_query("SELECT * FROM forum_reacties WHERE topicid='".$row['id']."' ORDER BY id DESC");
$aantal2 = mysql_num_rows($query2);
$row2 = mysql_fetch_assoc($query2);
$query3 = mysql_query("SELECT * FROM forum_reacties WHERE topicid='".$row['id']."' ORDER BY id DESC");
$aantal3 = mysql_num_rows($query3);
if($row['sticky'] == "1"){
$onder = "<b>".choppen($row['onderwerp'], 28)."</b>";
} else {
$onder = lekubb(choppen($row['onderwerp'], 28));
}
echo "<tr onMouseOver=\"this.style.backgroundColor='#B3E44C';this.style.cursor='hand'\"; onMouseOut=\"this.style.backgroundColor='';\" onClick=\"window.location.href='".$_SERVER['PHP_SELF']."?pagina=topic&topic=".$row['id']."'\">
<td width='10'><img src='images/topic.gif'></td>
<td width='225'><a title='".$row['onderwerp']."'>".$onder."</a></td>
<td width='125'>".gebruikersnaam($row['auteur'])."</td>
<td width='75'>".$aantal3."</td><td>";
if($aantal2 == FALSE){
echo "Nog geen reacties";
} else {
echo $row2['datum']." | ".$row2['tijd'];
}
echo "</td>
</tr>";
}
}
echo "</table>";
eindetabel();
} else {
begintabel("Forum categorieen");
echo "<table width='100%' border='0' cellpadding='3' cellspacing='0'>
<tr>
<td bgcolor='#D3ECA0' width='30'></td>
<td bgcolor='#D3ECA0' width='450'><b>Naam en omschrijving</b></td>
<td bgcolor='#D3ECA0'><b>Topics</b></td>
</tr>";
$query = @mysql_query("SELECT * FROM forum_cats ORDER BY volgorde ASC");
$aantal = @mysql_num_rows($query);
if($aantal == FALSE){
echo "<tr>
<td></td>
<td><i>Geen categorieen gevonden...</i></td>
<td></td>
</tr>";
} else {
while($row = mysql_fetch_assoc($query)){
$querya = mysql_query("SELECT * FROM forum_topics WHERE catid='".$row['id']."'");
$topics = mysql_num_rows($querya);
echo "<tr onMouseOver=\"this.style.backgroundColor='#B3E44C';this.style.cursor='hand'\"; onMouseOut=\"this.style.backgroundColor='';\" onClick=\"window.location.href='".$_SERVER['PHP_SELF']."?pagina=overzicht&id=".$row['id']."'\">
<td width='30'><center><img src='images/map_groot.gif'></center></td>
<td><b>".ubb($row['naam'])."</b><br>
".ubb($row['onderwerp'])."</td>
<td>".$topics."</td>
</tr>";
}
}
echo "</table>";
echo "<table width='100%' border='0' cellpadding='3' cellspacing='0'>
<tr>
<td bgcolor='#D3ECA0' width='30'></td>
<td bgcolor='#D3ECA0' width='450'><b>Naam en omschrijving</b></td>
<td bgcolor='#D3ECA0'><b>Topics</b></td>
</tr>";
$query = @mysql_query("SELECT * FROM forum_cats ORDER BY volgorde ASC");
$aantal = @mysql_num_rows($query);
if($aantal == FALSE){
echo "<tr>
<td></td>
<td><i>Geen categorieen gevonden...</i></td>
<td></td>
</tr>";
} else {
while($row = mysql_fetch_assoc($query)){
$querya = mysql_query("SELECT * FROM forum_topics WHERE catid='".$row['id']."'");
$topics = mysql_num_rows($querya);
echo "<tr onMouseOver=\"this.style.backgroundColor='#B3E44C';this.style.cursor='hand'\"; onMouseOut=\"this.style.backgroundColor='';\" onClick=\"window.location.href='".$_SERVER['PHP_SELF']."?pagina=overzicht&id=".$row['id']."'\">
<td width='30'><center><img src='images/map_groot.gif'></center></td>
<td><b>".ubb($row['naam'])."</b><br>
".ubb($row['onderwerp'])."</td>
<td>".$topics."</td>
</tr>";
}
}
echo "</table>";
eindetabel();
}
include("footer.php");
?>
Toon Meer
Zoals je ziet laad hij nu 2 x hezelfde bij het 1ste
moet hij id 1,2,3 uit forum_cats laden
en bij 2e 4,5,6
Maar lukte me niet?