Código PHP:
$select = mysql_query('SELECT * FROM aprender ORDER BY id DESC LIMIT 9');
$uno = '<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0">
<channel>
<title>Aprender Pokemolon</title>
<link>http://pokemolon.iespana.es/aprender.php</link>
<description>Ultimas cosas que aprender</description>';
while($ar = mysql_fetch_array($select)){
$dos = '<item><title>'.$ar['titulo'].'</title>
<link>http://pokemolon.iespana.es/veraprender.php?id='.$ar['id'].'</link>
</item>';
}
$tres = '</channel></rss>';
$bd = $uno.$dos.$tres;
$id = fopen('RSS/aprender.xml','w+');
fwrite($id, $bd);
¿Alguien me podría ayudar?