Ver original$consulta="select * from fichas WHERE fecha (BETWEEN '$fi' AND '$fc' ) AND GROUP BY tiempo='$tiempo'"