if ($_SERVER['REMOTE_ADDR'] != '84.41.142.108') { //exit(); } include("../www.inschrijvenopaanbestedingen.nl/inc/db.php"); function buildLeftColumn($type) { switch($type) { case "top10": $query = mysql_query("SELECT a.datum as datum, t.webnaam as type,t.urlnaam as urltype,f.urlname as urlfeed, a.title as title,a.id as id ,f.name as name,a.jaar as jaar, a.maand as maand, a.ln_title as urllink FROM tw_aanb a, tw_feeds f,tw_type t WHERE a.type_id = t.id AND a.feed_id = f.id AND a.type_id = 1 ORDER BY a.datum DESC LIMIT 5"); $ret = ""; while ($get = mysql_fetch_object($query)) { $titel = explode(": ",mb_convert_encoding($get->title,'UTF-8','ISO-8859-1')); $titel[1] = str_replace("NL-","",$titel[1]); $ret .= "