diff --git a/milfs/funciones/funciones.php b/milfs/funciones/funciones.php index cf6d742..442109f 100644 --- a/milfs/funciones/funciones.php +++ b/milfs/funciones/funciones.php @@ -587,7 +587,7 @@ if($mostrar[0] !="") { return $contenido; } -$consulta = "SELECT count(control) as cantidad , id_campo ,contenido FROM `form_datos`, `form_campos` WHERE `form_datos`.id_campo = `form_campos`.id AND `id_campo` = '$id_campo' AND `form_id` = '$id_form' GROUP BY $group order by cantidad"; +$consulta = "SELECT count(control) as cantidad , id_campo ,contenido , campo_nombre FROM `form_datos`, `form_campos` WHERE `form_datos`.id_campo = `form_campos`.id AND `id_campo` = '$id_campo' AND `form_id` = '$id_form' GROUP BY $group order by cantidad"; $link=Conectarse(); mysqli_set_charset($link, "utf8"); $sql=mysqli_query($link,$consulta); @@ -599,7 +599,7 @@ mysqli_set_charset($link, "utf8"); $lineas .="