
08/05/2006, 02:55
|
| | Fecha de Ingreso: mayo-2006
Mensajes: 7
Antigüedad: 18 años, 10 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 ??? |