Ver Mensaje Individual
  #2 (permalink)  
Antiguo 08/07/2008, 17:23
Avatar de WyLY
WyLY
 
Fecha de Ingreso: enero-2002
Ubicación: Cancun, México.
Mensajes: 506
Antigüedad: 22 años, 3 meses
Puntos: 6
De acuerdo Respuesta: RSS con PHP y MySQL ayudon

Intenta hacer un while antes sin do, a mi me ha servido así:

Código PHP:
<?php
include ('conexio.php');
$sql "SELECT * FROM tabla ORDER BY id DESC"
$resp mysql_query($sql);
while (
$row mysql_fetch_array($resp)) {
 
$resto substr ($row["articulo"], 0503);
 
$listo nl2br($resto);
 
?>
<item>
<title><?=$row['titulo']?></title>
<pubDate><?=$row['fecha']?></pubDate>
<category><?=$row['seccion']?></category>
<autor><?=$row['autor']?></autor>
<link>http://www.portalcancun.com/blog/verarticulo.php?id=<?=$row['id']?></link>
<description><![CDATA[<?=$listo."...";?>]]></description>
</item>
Cierras el While, la conexion, el channel y el rss.

intentalo, un abrazo.
__________________
I do techy stuff for a living and practice MMA with my dog... He always wins.