From a4826192dc7e2702eff4a04e729398b5320d6d46 Mon Sep 17 00:00:00 2001 From: fredyrivera Date: Sat, 14 Oct 2017 16:25:49 -0500 Subject: [PATCH] Correccion en API simple --- milfs/funciones/funciones.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/milfs/funciones/funciones.php b/milfs/funciones/funciones.php index 63358d3..8643fb0 100644 --- a/milfs/funciones/funciones.php +++ b/milfs/funciones/funciones.php @@ -847,7 +847,7 @@ while( $row = mysqli_fetch_array( $sql ) ) { $contenido = " $contenido "; - }else{$contenido = $consulta;} + }else{$contenido = "";} return $contenido; @@ -5011,7 +5011,7 @@ if($timestamp != "") { // return $timestam; }else{ $consulta ="SELECT * FROM form_datos WHERE control = '$identificador' $w $w_timestamp -GROUP BY timestamp ORDER BY timestamp DESC "; +GROUP BY timestamp,id_campo ORDER BY timestamp DESC "; } $sql = mysqli_query($link,$consulta) or die("Error al ejecutar consulta 02 ");