Ver Mensaje Individual
  #3 (permalink)  
Antiguo 07/08/2009, 12:55
helacer
 
Fecha de Ingreso: mayo-2006
Ubicación: Bogotá
Mensajes: 2.061
Antigüedad: 18 años
Puntos: 50
Respuesta: Select between datetimes PHP-Mysql

Si horai y horaf son dos campos de la tabla seria asi:

select count(*) from premios Where horai<=$momento and horaf>=$momento

o expliqueme mejro para ayudarle.

Edito

Se me adelanto abimael