Ver Mensaje Individual
  #5 (permalink)  
Antiguo 09/09/2010, 13:21
Avatar de carlos_belisario
carlos_belisario
Colaborador
 
Fecha de Ingreso: abril-2010
Ubicación: Venezuela Maracay Aragua
Mensajes: 3.156
Antigüedad: 14 años
Puntos: 461
Respuesta: buscada entre margen de fechas.

bueno podrias hacerlo asi
Código MySQL:
Ver original
  1. select * from prueba where '$fecha1' between fecha_desde and fecha_hasta or '$fecha2' between fecha_desde and fecha_hasta;
pruebalo y ve si te sirve saludos;
__________________
aprende d tus errores e incrementa tu conocimientos
it's not a bug, it's an undocumented feature By @David
php the right way