Ver Mensaje Individual
  #1 (permalink)  
Antiguo 28/07/2009, 22:49
Avatar de polin2bclan
polin2bclan
 
Fecha de Ingreso: julio-2008
Mensajes: 73
Antigüedad: 15 años, 10 meses
Puntos: 5
Rss solo muestra una noticia

Hola nuevamente, un cordial saludo.

Tengo el problema que al crear un rss de las noticias de mi web solo muestra una.

He analizado el código detenidamente pero no encuentro el error.

Aquí les dejo mi consulta codigo fuente:
Código PHP:
<?php
require_once("/home/web/tipitapa/www/static.tipitapaenlinea.com/php/general/db.php");
$lastBuildDate $db->get_var("SELECT noticiasFecha FROM noticias_temas ORDER BY noticiasFecha DESC LIMIT 1") ;
?>
<?php 
print('<?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/"
    xmlns:atom="http://www.w3.org/2005/Atom"
    xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    >

<channel>
    <title>Noticias de Tipitapa en TipitapaEnLinea.Com</title>
    <atom:link href="http://noticias.tipitapaenlinea.com/rss.xml" rel="self" type="application/rss+xml" />
    <link>http://noticias.tipitapaenlinea.com</link>
    <description>Noticias de todo lo que acontece en la Ciudad de Tipitapa en Nicaragua</description>
    <lastBuildDate><?php echo date("D, d M Y G:i:s O",strtotime($lastBuildDate)); ?></lastBuildDate>

    <generator>http://tipitapaenlinea.com/</generator>
    <language>es</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <?php $query mysql_query("SELECT N.noticiasFecha AS noticiasFecha, N.noticiasContenido as noticiasContenido, N.noticiasTitulo as noticiasTitulo, N.noticiasNombre as noticiasNombre, N.noticiasVisitas as noticiasVisitas, N.noticiasImgUrl as noticiasImgUrl, C.categoriasNombreUrl as categoriasNombreUrl, C.categoriasNombre as categoriasNombre, U.usuarioNick  as usuarioNick FROM noticias_temas N, categorias C,usuarios U WHERE C.categoriasId = N.noticiasCategoria AND N.noticiasAutor = U.usuarioId AND C.categoriasTipo='noticias' ORDER BY N.noticiasFecha ASC LIMIT 0,30"); ?>
    <?php if(@mysql_num_rows($query) > 0?>
    <?php ?>
    <?php for($i=0$i<mysql_num_rows($query); $i++) ?>
    <?php         ?>
    <?php         $show mysql_fetch_array($query); ?>
            <item>
        <title><?php echo $show["noticiasTitulo"]; ?></title>

        <link>http://noticias.tipitapaenlinea.com/<?php echo $show["categoriasNombreUrl"]; ?>/<?php echo $show["noticiasNombre"]; ?>.html</link>
        <comments>http://noticias.tipitapaenlinea.com/<?php echo $show["categoriasNombreUrl"]; ?>/<?php echo $show["noticiasNombre"]; ?>.html</comments>
        <pubDate><?php echo date("D, d M Y G:i:s O",strtotime($show["noticiasFecha"])); ?></pubDate>
        <dc:creator><?php echo $show["usuarioNick"]; ?></dc:creator>
        <category><![CDATA[Tipitapa]]></category>
        <category><![CDATA[Parque]]></category>
        <category><![CDATA[Cancha]]></category>
        <category><![CDATA[Liga]]></category>
        <category><![CDATA[Barrio]]></category>
        <category><![CDATA[Juegos]]></category>
        <category><![CDATA[Villa]]></category>
        <category><![CDATA[Millenium]]></category>
        <category><![CDATA[Fiestas]]></category>
        <category><![CDATA[Juan]]></category>
        <category><![CDATA[Castro]]></category>
        <category><![CDATA[Managua]]></category>
        <category><![CDATA[Nicaragua]]></category>

        <guid isPermaLink="false">http://noticias.tipitapaenlinea.com/<?php echo $show["categoriasNombreUrl"]; ?>/<?php echo $show["noticiasNombre"]; ?>.html</guid>
        <description><![CDATA[<?php echo substr($show["noticiasContenido"],0,90); ?> [...]]]></description>
            <content:encoded><![CDATA[<?php echo $show["noticiasContenido"]; ?>]]></content:encoded>
            <wfw:commentRss>http://noticias.tipitapaenlinea.com/<?php echo $show["categoriasNombreUrl"]; ?>/<?php echo $show["noticiasNombre"]; ?>.html</wfw:commentRss>
        <slash:comments>1</slash:comments>
        </item>
    <?php         ?>
    <?php ?>
    </channel>
</rss>
Si saben cual es mi problema porfa me lo dicen.

gracias.