'18plusvideo.nl', 'dc:creator' => 'Mr.Cash ' ) ); $root = "{$promo}.18plusvideo.nl/"; if ($_REQUEST['cat']=="") $select = ""; else $select = " WHERE cat_id=".mysql_escape_string($_REQUEST['cat']); if ($_REQUEST['amount']=="" || $_REQUEST['amount']=="alles") $limiter = ""; else $limiter = " LIMIT ".mysql_escape_string($_REQUEST['amount']); $res = mysql_query("SELECT * FROM content".$select." ORDER BY content_id DESC".$limiter); /* Add every news item to the rss feed */ while ($item = mysql_fetch_assoc($res)) { $rss->addItem( "http://".$root.$item['content_id']."/".conv(mb_convert_encoding(str_replace(" ","_",$item['title_nl']),"ISO-8859-1", "UTF-8")), mb_convert_encoding($item['title_nl'], "ISO-8859-1", "UTF-8"), array( 'description' => "


" . conv(mb_convert_encoding($item['description_nl'],"ISO-8859-1", "UTF-8")) . "
", 'title' => mb_convert_encoding($item['title_nl'], "ISO-8859-1", "UTF-8"), ) ); } /* Generate the RSS feed and sent it to the browser */ $rss->serialize(); function conv($s){ $s = str_replace(">",">",$s); $s = str_replace("<","<",$s); return $s; } ?>