$query = "SELECT iid, itemtitel, tekst, tekst as inleiding FROM items WHERE status='1' AND sid='13' ORDER BY positie DESC LIMIT 1";
$result = mysql_query($query);
$x = 1;
while ($row = mysql_fetch_object($result)) {
echo "
if(isset($_GET['lees'])){
$query = "SELECT iid, itemtitel, tekst, tekst as inleiding FROM items WHERE status='1' AND iid='".quote_smart($_GET['lees'])."' ORDER BY positie";
}
else{
$query = "SELECT iid, itemtitel, tekst, tekst as inleiding FROM items WHERE status='1' AND sid='".$sid."' ORDER BY positie";
}
$result = mysql_query($query);
while ($row = mysql_fetch_object($result)) {
echo "$row->itemtitel
"; echo "$row->tekst
";
}
$query = "SELECT iid, itemtitel, tekst, tekst as inleiding FROM items WHERE status='1' AND sid='11' ORDER BY positie DESC LIMIT 1";
$result = mysql_query($query);
while ($row = mysql_fetch_object($result)) {
echo "$row->itemtitel
"; echo "$row->tekst
";
}
?>
$row->itemtitel
"; echo "
";
if(!isset($_GET['lees'])){
echo substr (strip_tags($row->tekst),0,300).".... iid\">Lees verder»";
}
else{
echo "$row->tekst";
}
echo "
";
}
?>