Nieuws
include "config.php"; include "functies.php"; if ($_GET[nid] == ""){ ?> $query = "SELECT * FROM nieuws ORDER BY id DESC LIMIT 0, 5"; $resultaat = mysql_query($query) ; // Een loop maken while ($obj = mysql_fetch_object($resultaat)){ /* if ( $obj->urldoc != ""){ $pl="images/nieuws/nb$obj->id.jpg"; }else{ $pl="images/nieuws/geennieuwsfoto.jpg"; } $srcimage = imagecreatefromjpeg($pl); $width = imageSX($srcimage); $height = imageSY($srcimage); while($width >= 120){ $width = $width / 1.01; $height = $height / 1.01; } while($height >= 120){ $width = $width / 1.01; $height = $height / 1.01; } */ $bericht = $obj->sermondescription; $bericht = short($bericht, 200); $uitvoer_content .= ''.$obj->sermontitle.'
'.$bericht.'
Lees verder...
Bron: '.$obj->bron.' - Geplaatst: '.$obj->datereal.'
'; } // Echo titel met link $uitvoer_content .= "
"; }else{ $query = "SELECT * FROM nieuws WHERE id = ".$_GET[nid].""; $resultaat = mysql_query($query) or die ("$query"); // Een loop maken while($obj = mysql_fetch_object($resultaat)){ if ( $obj->urldoc != ""){ $pl="nb$obj->id.jpg"; }else{ $pl="geennieuwsfoto.jpg"; } // Echo titel en bericht $uitvoer_content .= "
$obj->sermontitle
$obj->sermondescription
