ob_start(); session_start(); mysql_connect("localhost", "aqh001_pantrex", "agenturen123") or die(mysql_error()); mysql_select_db("aqh001_www_pantrex_nl") or die(mysql_error()); function bewerk($bericht) { $bericht = nl2br($bericht); $bericht = preg_replace("/\[mail=(.*?)\](.*?)\[\/mail\]/i", "\\2",$bericht); $bericht = preg_replace("/\[url=(.*?)\](.*?)\[\/url\]/i", "\\2",$bericht); $bericht = preg_replace("/\[url\](.*?)\[\/url\]/i", "\\1",$bericht); $bericht = preg_replace("/\[url2=(.*?)\](.*?)\[\/url\]/i", "\\2",$bericht); $bericht = preg_replace("/\[url3=(.*?)\](.*?)\[\/url\]/i", "\\2",$bericht); $bericht = preg_replace("#\[b\](.*?)\[/b\]#si", "\\1", $bericht); $bericht = preg_replace("#\[u\](.*?)\[/u\]#si", "\\1", $bericht); $bericht = preg_replace("#\[i\](.*?)\[/i\]#si", "\\1", $bericht); $bericht = preg_replace("#\[ul\](.*?)\[/ul\]#si", "
\\1", $bericht); $bericht = preg_replace("#\[temp\](.*?)\[/temp\]#si", "", $bericht); $bericht = preg_replace("#\[img\](.*?)\[/img\]#si", "", $bericht); return $bericht; } ?> if($_GET['pag'] != ""){ $titpag = $_GET[pag]; } else { $titpag = "home"; } $titsql = "SELECT * FROM inhoud WHERE pagina = '$titpag'"; $titresult = mysql_query($titsql) or die(mysql_error()); $titdo_sql = mysql_fetch_array($titresult); echo "
$sql = "SELECT * FROM fabrikanten ORDER BY 'naam' ASC";
$result = mysql_query($sql) or die(mysql_error());
while ($do_sql = mysql_fetch_array($result)) {
echo "$do_sql[naam] ";
}
?>
|
||||||||||||||||||||||||||||||||||||||||
|