Ver Mensaje Individual
  #4 (permalink)  
Antiguo 01/06/2009, 14:09
Avatar de Ronruby
Ronruby
 
Fecha de Ingreso: julio-2008
Ubicación: 18°30'N, 69°59'W
Mensajes: 4.879
Antigüedad: 16 años, 8 meses
Puntos: 416
Respuesta: Consulta MySQL con PHP de acuerdo a dos valores date y time...

Cita:
dicha tabla tiene un campo llamado "fecha" (de tipo DATE) y otro llamado "hora"(de tipo TIME)
¿Porque no hiciste 1 solo campo tipo DATETIME?

De todos modos, puedes hacer:

SELECT * FROM tabla WHERE (fecha BETWEEN 'inicio' AND 'final') AND (hora BETWEEN 'inicio' AND 'final')