
29/09/2010, 11:48
|
 | Modernizr | | Fecha de Ingreso: abril-2008 Ubicación: Mexihco-Tenochtitlan
Mensajes: 26.399
Antigüedad: 16 años, 10 meses Puntos: 2534 | |
Respuesta: Auxilio:::: analiza tu consulta, y nota que hace falta un operador: Cita: // MAL
select folio, fecha, hora, unidad, nombre from reporte, unidades, usuarios where reporte.id_unidad = unidades.id_unidad and reporte.id_nom = usuarios.id_nom reporte.fecha between '$fecha1' and '$fecha2'
// BIEN
SELECT
folio, fecha, hora, unidad, nombre
FROM
reporte, unidades, usuarios
WHERE ((reporte.id_unidad = unidades.id_unidad) AND (reporte.id_nom = usuarios.id_nom)) AND (reporte.fecha between '$fecha1' AND '$fecha2' ) además también deberías agrupar las condicionales, si no se te puede complicar...
__________________ Y U NO RTFM? щ(ºдºщ) No atiendo por MP nada que no sea personal. |