diff --git a/milfs/funciones/funciones.php b/milfs/funciones/funciones.php index e951e60..e084c8b 100644 --- a/milfs/funciones/funciones.php +++ b/milfs/funciones/funciones.php @@ -39,7 +39,7 @@ return $resultado; function formulario_contar($id) { -$consulta ="SELECT count(control) as cantidad FROM form_datos WHERE form_id = '$id' GROUP BY form_id,control order by cantidad DESC LIMIT 1 "; +$consulta ="SELECT count(distinct control) as cantidad FROM form_datos WHERE form_id = '$id' GROUP BY form_id order by cantidad DESC LIMIT 1 "; $link=Conectarse(); mysql_query("SET NAMES 'utf8'"); $sql=mysql_query($consulta,$link); @@ -789,7 +789,7 @@ if($perfil !=''){$perfil ="AND form_id = '$perfil'";}Else{ if($cantidad < 1) { $resultado ="

- El formulario \"$formulario_nombre[0]\" no tiene registros + El formulario \"$formulario_nombre[0]\" no tiene registros $consulta

"; $respuesta->addAssign($div,"innerHTML",$resultado);