'; echo ' http://www.newadultzone.com/ 1.0 daily '; $conexiune=mysql_connect($server,$user,$pass); if (!conexiune) { die('Cannot connect to mysql ' . mysql_error()); } mysql_select_db($db); $cerere="SELECT * FROM videos WHERE active='1' ORDER BY VIDEOID DESC Limit 0,50"; $res=mysql_query($cerere) or die(mysql_error()); $i=1; while($row=mysql_fetch_array($res)) { $xmlurl =str_replace("-", " ", $row['title']); $xmlurl=str_replace("&", " ", $xmlurl); $xmlurl=str_replace("`", " ", $xmlurl); $xmlurl=str_replace("'", "", $xmlurl); $xmlurl=str_replace("?", "", $xmlurl); $xmlurl=str_replace("!", "", $xmlurl); $xmlurl=str_replace(":", "", $xmlurl); $xmlurl=str_replace("%", "", $xmlurl); $xmlurl=str_replace("@", "", $xmlurl); $xmlurl=str_replace(",", " ", $xmlurl); $xmlurl=str_replace("_", "", $xmlurl); $xmlurl=str_replace(".", "", $xmlurl); $xmlurl=str_replace("(", "", $xmlurl); $xmlurl=str_replace(")", "", $xmlurl); $xmlurl=str_replace("[", "", $xmlurl); $xmlurl=str_replace("]", "", $xmlurl); $xmlurl=str_replace("/", " ", $xmlurl); $xmlurl=str_replace(" ", " ", $xmlurl); $xmlurl=str_replace(" ", " ", $xmlurl); $xmlurl=str_replace(" ", " ", trim($xmlurl)); $xmlurl=str_replace(" ", "+", $xmlurl); $categorie=$row['categories']; $VIDEOID=$row['VIDEOID']; echo ' '."\n"; echo ' http://www.newadultzone.com/'.$VIDEOID.'/'.$xmlurl.'.html'; echo ' 0.5'; echo ' daily'; echo ' '."\n"; } echo ''; ?>