<?php
header("Content-Type: text/xml; charset=ISO-8859-1");
echo '<?xml version="1.0" encoding="ISO-8859-1" ?>';
?>
<rss version="0.91">
<channel>
<title>Doctor Deseo</title>
  <link>http://www.doctordeseo.com</link>
  <description>Página web de Doctor Deseo</description>
  <language>es-ES</language>
  
  <image>
<title>Doctor Deseo</title>
<url>http://www.peonnegro.com/docdes/fotos/logo.gif</url>
<link>http://www.doctordeseo.com</link>
<width>32</width>
<height>25</height>
</image>
<?
mysql_connect("localhost","jorgiyo_jorgiyo","1306");
$result=mysql_db_query("jorgiyo_doctordeseo","SELECT * FROM noticias_rss ORDER BY fecha DESC"); 
 while ($row=mysql_fetch_array($result))
{
?>

<item>
	<title><?php echo $row[titular]?></title>
	<link>http://www.doctordeseo.com</link>
	<description><?php echo $row[noticia]?></description>
  </item>
  <? } ?>

</channel>
</rss>