Ver Mensaje Individual
  #8 (permalink)  
Antiguo 11/05/2010, 10:29
Avatar de huesos52
huesos52
Colaborador
 
Fecha de Ingreso: febrero-2009
Ubicación: Manizales - Colombia
Mensajes: 5.980
Antigüedad: 15 años, 2 meses
Puntos: 360
Respuesta: consulta unix timestamp

Tenes razón... hay un problema de casteos.

Prueba esta:
Código SQL:
Ver original
  1. WHERE
  2. FROM_UNIXTIME(lastaccess)
  3. BETWEEN
  4. DATE_SUB(FROM_UNIXTIME(UNIX_TIMESTAMP()), INTERVAL 1 WEEK)
  5. AND
  6. FROM_UNIXTIME(UNIX_TIMESTAMP());
__________________
Without data, You are another person with an opinion.
W. Edwads Deming