Ver Mensaje Individual
  #3 (permalink)  
Antiguo 13/11/2007, 12:20
CeRo_ByTe
 
Fecha de Ingreso: enero-2007
Mensajes: 158
Antigüedad: 17 años, 3 meses
Puntos: 2
Re: Mostrar resultados ordenados por fechas

Si hasta ahí más o menos habia llegado.

Pero me muestra todos los resultados uno detrás de otro, sin hacer distinción entre fechas.

Utilizo lo siguiente:

Código PHP:
$sql "SELECT * FROM noticias ORDER BY fecha DESC"
$resultado mysql_query($sql) or die (mysql_error()); 

while (
$fila=mysql_fetch_object($resultado))

     echo 
$fila->titulo_noticia;

Si quiero mostrarlos de la forma anterior, es decir, de esta forma:

--------------------------------------------
Día: 2007-11-12
--------------------------------------------
Noticia 1
Noticia 2
Noticia 3

--------------------------------------------
Día: 2007-11-13
--------------------------------------------
Noticia 4
Noticia 5
Noticia 6

¿Qué debo hacer?