![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
18/11/2008, 18:02
|
| | Fecha de Ingreso: noviembre-2008
Mensajes: 2
Antigüedad: 16 años, 2 meses Puntos: 0 | |
Respuesta: Un Pequeño Error en un código. Prueba con este código. En principio asi ya bastaria.
<?
}
}
$numeracion=@mysql_query("SELECT * FROM contenido union SELECT * FROM contenido1 LIMIT 1000");
$rc=@mysql_num_rows($numeracion);
$total=ceil($rc/$cant);
if($rc>$cant && $pag<=$total){
echo"<br /><br /><center>";
mysql_query("delete FROM contenido");
if ($pag>20){ echo"<a href=\"noticias-".($pag-1).".html\"><<</a>"; } else { echo"<< "; }
for ($i=1;$i<$total+1;$i++){
if ($pag==$i){
echo"[$i]";
} else {
echo "[<a href=\"noticias-$i.html\">$i</a>]";
}
}
if ($pag<$total) echo"<a href=\"noticias-".($pag+1).".html\">>></a>";
echo"</center><br>";
}
?>
Última edición por Maestrold; 18/11/2008 a las 18:20
Razón: correccion
|