Código PHP:
<?
$Plantilla="
<br><b>{TITULO}<b><br>
{FECHA}<br>
{AUTOR}";
$ssql = "select * from $TABLA ORDER BY ID DESC LIMIT 0,3";
$xy = mysql_query($ssql);
while ($row=mysql_fetch_object($xy)){
$titulo=$row->titulo;
$descrip=$row->descrip;
$url=$row->url;
$Plantilla= str_replace("{TITULO}","$titulo",$Plantilla);
$Plantilla= str_replace("{FECHA}","$fecha",$Plantilla);
$Plantilla= str_replace("{AUTOR}","$autor",$Plantilla);
echo"$Plantilla";
}
?>
Resultados FATALES:
Los Tres registros que mando a imprimir son los mismo , me toma el pirmer registro conseguido para dar valores identicos a los siguientes registros.-
Que Error puede haber?
Saludos.-