Ver Mensaje Individual
  #14 (permalink)  
Antiguo 06/10/2010, 12:40
gamonoso
 
Fecha de Ingreso: mayo-2006
Mensajes: 8
Antigüedad: 18 años
Puntos: 0
Respuesta: Registro por mes y año

Cita:
Iniciado por Death_Empire Ver Mensaje
Código PHP:

$result
=mysql_db_query("nombre","select YEAR(fecha) AS yr, MONTH(fecha) AS mn, titulo, DATE_FORMAT(fecha,'%d %M %Y') AS fecha, foto1, foto2, foto3, video, texto from noticias Where MONTH(fecha)='".$_GET['mn']."' AND YEAR(fecha)='".$_GET['yr']."' ORDER BY `fecha` ASC") or die(mysql_error()); 
ese es el que no me devuelve ningun resultado