este es mi codigo php:
Código :
<? include('config.php'); include ("funciones.php"); echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?><rss version=\"2.0\" xmlns:content=\"http://purl.org/rss/1.0/modules/content/\" xmlns:wfw=\"http://wellformedweb.org/CommentAPI/\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\"> <channel> <title>Juaann</title> <description>juaann - juaann</description> <link>http://www.aaaaa.com.ar/</link> <language>es-sp</language> <copyright>Copyright 2009 aaaaa.com</copyright>"; $id=$_REQUEST['id']; $registros=mysql_query("select * from post WHERE autor='$id'"); while ($reg=mysql_fetch_array($registros)){ $reg['titulo'] = str_replace(" ",'-',$reg['titulo']); $reg['cuerpo']=substr($reg['cuerpo'],0,300); echo "<item> <title>".$reg['titulo']."</title> <link>http://www.aaaaa.com.ar/</link> <pubDate>".$reg['fecha']."</pubDate> <category>![CDATA[".$reg['cat']."]]</category> <comments></comments> <description>".$reg['cuerpo']."</description> </item>"; } echo "</channel> </rss>"; ?>
Qe puedo hacer?