Ver Mensaje Individual
  #3 (permalink)  
Antiguo 03/04/2012, 11:48
Avatar de hackjose
hackjose
 
Fecha de Ingreso: abril-2010
Ubicación: Edo Mexico
Mensajes: 1.178
Antigüedad: 14 años
Puntos: 131
Respuesta: fechas mas recientes

ejemplo

Código MySQL:
Ver original
  1. select * from tabla1 where campo_fecha between subdate(current_date(),INTERVAL 3 DAY) and current_day() order by fecha desc limit 5;

Esta consulta toma los ultimos registros que tengan la fecha actual o tres dias anteriores