correcion en campo buscador con soporte para case insesitive

This commit is contained in:
humano 2020-04-10 19:09:03 -05:00
parent 1af3a673e5
commit 710efa5be8

View File

@ -11893,7 +11893,7 @@ if($valor !="") {
}
//$consulta_paginacion = "SELECT control FROM form_datos WHERE contenido LIKE '%%$valor%%' and form_id ='$formulario' and ( id_campo ='$key' OR id_campo = '$descripcion' ) GROUP BY control ";
//$consulta = "SELECT contenido, control FROM form_datos WHERE form_id ='$formulario' and (id_campo ='$key' OR id_campo ='$descripcion' )AND contenido like '%%$valor%%' GROUP BY control limit 15 ";
$consulta = "SELECT contenido, control ,id_campo FROM form_datos WHERE contenido LIKE '%%$valor%%' and form_id ='$formulario' and ( id_campo ='$key' OR id_campo = '$descripcion' ) GROUP BY control limit $limite ";
$consulta = "SELECT contenido, control ,id_campo FROM form_datos WHERE UPPER(contenido) LIKE UPPER('%%$valor%%') and form_id ='$formulario' and ( id_campo ='$key' OR id_campo = '$descripcion' ) GROUP BY control limit $limite ";
$sql=mysqli_query($link,$consulta);
//$sql_paginacion=mysqli_query($link,$consulta_paginacion);
@ -11927,7 +11927,7 @@ $resultado .= "
}
else{
// if($publico[0] == '0' AND $propietario[0] != $_SESSION['id']){$agregar ="";}else{$agregar ="<a class='btn btn-default ' href='../g$formulario' target='formulario'>Agregar nuevo registro</a>";}
$resultado = "<div class='alert alert-warning alert_sin_resultados'><i class='glyphicon glyphicon-exclamation-triangle'></i> No hay resultados para $consulta<strong>$valor</strong> $agregar</div>";}
$resultado = "<div class='alert alert-warning alert_sin_resultados'><i class='glyphicon glyphicon-exclamation-triangle'></i> No hay resultados para <strong>$valor</strong> $agregar</div>";}