Tema: porque no va
Ver Mensaje Individual
  #1 (permalink)  
Antiguo 08/05/2006, 02:55
tihoji_0
 
Fecha de Ingreso: mayo-2006
Mensajes: 7
Antigüedad: 17 años, 11 meses
Puntos: 0
porque no va

<?php
include ('config.php');
$sql="select * from wp_posts order by ID desc limit 2";
$rs=mysql_query($sql, $conexion)or die(mysql_error());
$fila=mysql_fetch_array($rs);
while($fila=mysql_fetch_array($rs))
{
$matriz[]=array("Titulo" => $fila[post_title],"URL" => $fila[guid]);
}
$run=count($matriz);
$penultimo=$run-2;
$antepenultimo=$run-3;
echo "<a href='". $matriz[$penultimo][guid] ."' target='_blank'>" . $matriz[$penultimo][post_title] . "</a>";
echo "<a href='". $matriz[$antepenultimo][guid] ."' target='_blank'>" . $matriz[$antepenultimo][post_title] . "</a>";
?>

q le pasa al codigo, porq no me va ???