limite en json

This commit is contained in:
fredyrivera 2017-10-18 17:16:33 -05:00
parent f42937a10a
commit ac38b2ac89

View File

@ -8694,12 +8694,14 @@ function formulario_embebido_campos($id,$opcion){
}
function json($datos){
$limite="";
if(isset($datos['start']) AND isset($datos['end'])) {
$campo = buscar_campo_tipo($datos['id'],"32");
if($campo[0] =="") {
$campo = buscar_campo_tipo($datos['id'],"11");
}
$w_rango ="( form_datos.id_campo = $campo[0] ) AND ( DATE(contenido) BETWEEN DATE('$datos[start]') AND DATE('$datos[end]') ) AND ";
$limite ="limit 100";
}
@ -8728,7 +8730,7 @@ mysqli_set_charset($link, "utf8");
AND (form_id = '$datos[id]' )
$publico
GROUP BY form_datos.control
ORDER BY form_datos.timestamp DESC";
ORDER BY form_datos.timestamp DESC $limite ";
$sql = mysqli_query($link,$consulta) or die("Error al ejecutar consulta 03 ");
// $features['consulta'] = $consulta;