Ver Mensaje Individual
  #3 (permalink)  
Antiguo 14/06/2005, 09:09
Avatar de k-brito
k-brito
 
Fecha de Ingreso: noviembre-2002
Ubicación: La hermosa Tierra del Folklore
Mensajes: 135
Antigüedad: 21 años, 3 meses
Puntos: 0
Muchas gracias por tu respuesta.

Here is an example that uses date functions. The following query selects all records with a date_col value from within the last 30 days:


mysql> SELECT something FROM tbl_name
-> WHERE DATE_SUB(CURDATE(),INTERVAL 30 DAY) <= date_col;



Sería algo así??

O me recomiendas echarle ganas con PHP