Nirt3, pon atención aquí...
Cita: Error en query: select from churumuco where fecha_muestra>= and fecha_muestra<=, el error es: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'from churumuco where fecha_muestra>= and fecha_muestra<=' at line 1
si no me equivoco esa sería tu consulta, y por lo visto no tiene valores...
así que el problema es ese, debes asegurarte que existan los valores antes de ejecutar la consulta... para comprobar esto procura imprimirla antes!!