Good afternoon I have a code in php where a list has values of a mysql field:
<div class="input-group">
<span class="input-group-addon">Ruta: </span>
<select name="rutas" id="estados" value="0" class="form-control" onchange="showUser(this.value)">
<?php
while ($fil = mysqli_fetch_array($resultas)){ ?>
<option value="<?php echo $fil['id']; ?>"><?php echo $fil['descripcion']; ?></option>
<?php
} ?>
</select>
<span class="input-group-btn">
<a href="rutas/nuevaRuta.php" class="btn btn-success" role="button"><span class="glyphicon glyphicon-plus-sign"></span></a>
</span>
</div>
Where the data comes from the following query:
$resultas = mysqli_query($link, "SELECT * FROM rutas WHERE (cveorig='$claveEstado' OR cvedest='$claveEstado') AND cliente='CLI140002'");
What I need is to make a general query (show all the records in the description field) by clicking on a checkbox