diff --git a/funciones/funciones.php b/funciones/funciones.php index 344bb66..43f3199 100644 --- a/funciones/funciones.php +++ b/funciones/funciones.php @@ -7227,13 +7227,14 @@ $xajax->registerFunction("multiempresa"); function array_control($form_id,$key,$valor){ + $resultado = array(); $consulta = "SELECT control FROM form_datos WHERE form_id = '$form_id' AND id_campo = $key AND contenido = '$valor' "; $link=Conectarse(); mysqli_set_charset($link, "utf8"); $sql=mysqli_query($link,$consulta); if (mysqli_num_rows($sql)!='0'){ $cantidad = mysqli_num_rows($sql); -$resultado = array(); + while( $row = mysqli_fetch_array( $sql ) ) { $resultado[] = $row['control']; }