Home / De Expert

 

de expert
 
 
0) { $sql = "SELECT * FROM forumberichten WHERE forumid = 27 AND topic = 0 AND deleted='nee' AND id = \"".$id."\" "; } else { $sql = "SELECT * FROM forumberichten WHERE forumid = 27 AND topic = 0 AND deleted='nee' ORDER BY datum DESC LIMIT 1"; } $result = mysql_query($sql) or die("Kan query niet uitvoeren"); $row = mysql_fetch_array($result); $id = max(0, intval($row["id"])); if ($row["attachment"]>0) { $dresult = mysql_query("SELECT filetype, filenaam FROM forumuploads WHERE id=".$row["attachment"]); $drow=mysql_fetch_array($dresult); $attach_type=$drow["filetype"]; $attach_name=$drow["filenaam"]; mysql_free_result($dresult); if ($attach_type=="jpg" || $attach_type=="gif" || $attach_type=="png") { $pattern = "/\[file(\salign=(right|left))*\]/i"; $replacement = "\"\""; $row["htmlbericht"] = preg_replace($pattern, $replacement, $row["htmlbericht"]); } else { $pattern = "/\[file(\salign=(right|left))*\]/i"; $replacement = "file"; $row["htmlbericht"] = preg_replace($pattern, $replacement, $row["htmlbericht"]); } } echo "

".$row["onderwerp"]."

".ndate($row["datum"], "j F Y")."

".$row["htmlbericht"]."


"; mysql_free_result($result); $sql = "SELECT * FROM forumberichten WHERE forumid=27 AND topic=".$id." AND deleted='nee' ORDER BY datum DESC"; $result = mysql_query($sql) or die("Kan query niet uitvoeren"); $numrows = mysql_num_rows($result); echo ""; if ($numrows<=0) { echo ""; } $x=0; while ($row = mysql_fetch_array($result)) { echo "\n"; } echo "
Reacties
Schrijf zelf een reactie \"Reageer\"
Nog geen reacties
".ndate($row["datum"], "j F Y")." door ".$row["username"]."".dirReplace($row["htmlbericht"])."


"; echo ""; $sql = "SELECT id, onderwerp, datum FROM forumberichten WHERE forumid = 27 AND topic=0 AND deleted='nee' ORDER BY datum DESC"; $result = mysql_query($sql) or die("Kan query niet uitvoeren"); $x=0; while ($row = mysql_fetch_array($result)) { echo "\n"; } echo "
overige expert artikelen
".ndate($row["datum"], "j F Y")."".$row["onderwerp"]."
"; ?>

 

   
   

Steun Stichting 1Ouder: bankrekeningnummer 341631892 o.v.v. donatie