1
0
forked from qwerty/milfs

correcion en campo buscador que solo consideraba el inicio del parrafo

This commit is contained in:
humano 2020-04-10 18:42:04 -05:00
parent 9ec3b5609b
commit 4d0ed8511e

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 contenido LIKE '%%$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 <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>";}