setFicheroConfig('../admin/config/noticias.php'); $sql = "SELECT * FROM noticias ORDER BY fecha DESC LIMIT 1,50"; $consultaNoticias->setSQL($sql); $result = $consultaNoticias->ejecutarConsulta(); // Header para escribir XML header('Content-type: text/xml; charset="iso-8859-1"', true); // Escribimos el archivo RSS echo ''."\n"; echo ' '.$rss_titulo.' es-ES '.$rss_url.' '.$rss_descripcion.' es '.$rss_email.' '.$rss_email.' Popes80.com: Diario digital de pop espaņol. Noticias Popes80.com: Diario digital de pop espaņol http://www.popes80.com/LOGOS/logoportal.png http://www.popes80.com '; while ($item = mysql_fetch_array($result)) { echo " \n"; // echo " ".html_entity_decode($item['titulo'])."\n"; echo " ".html_entity_decode(str_replace('&', '&',$item['titulo']), ENT_QUOTES)."\n"; echo " ".html_entity_decode("http://www.popes80.com/noticias.php?id=".$item['id'])."\n"; echo " ".html_entity_decode(str_replace('&', '&',$item['entradilla']))."\n"; //echo " ".html_entity_decode($item['entradilla'])."\n"; //str_replace("
","\n",$$campos[$i]) echo " ".$item['fecha']."\n"; echo "
\n"; } echo "
\n"; echo "
"; ?>