![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
11/05/2002, 15:08
|
![Avatar de camargo](http://static.forosdelweb.com/customavatars/avatar18394_1.gif) | | | Fecha de Ingreso: abril-2002 Ubicación: Kerétaro, Méjiko
Mensajes: 1.045
Antigüedad: 22 años, 10 meses Puntos: 2 | |
Re: Cambiar noticia automaticamente if ( $pagina == "" ) {
$pagina = "1";
}
$porpagina = 5;
$pagsiguiente = $pagina +1;
$paganterior = $pagina -1;
$uno = ( $pagina * $porpagina ) - $porpagina;
$dos = ( $pagina * $porpagina );
if ( $orden == "fecha" ) {
$orden = "fecha DESC";
}
>>>SELECCIONAS LA TABLA y la ordenas por fecha..
"SELECT * FROM noticias ORDER By $orden LIMIT $fecha", $basedatos_enlace );
>> luego muestras las noticias
con su respectivo <a href=noticia.php?id=1>$basedatos_info[noticia]> y por ahi echando a perder se aprende,, jeje,
<a href="http://www.elpar.net"><img src="http://www.elpar.net/banner.gif" border="0" width="468" height="60"></a> |