![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
09/09/2010, 09:28
|
![Avatar de koji_kabuto](http://static.forosdelweb.com/customavatars/avatar351429_1.gif) | | | Fecha de Ingreso: abril-2010
Mensajes: 16
Antigüedad: 14 años, 9 meses Puntos: 0 | |
Respuesta: Consulta en cadenas de texto AYUDA !!! <form action="prueba.php" method="get">
<p><strong>Modalidad</strong><br />
Fijo <input type="checkbox" name="modalidad[]" value="fijo" id="groups_1"/>
Temporal <input type="checkbox" name="modalidad[]" value="temporal" id="groups_2"/>
Pasantia <input type="checkbox" name="modalidad[]" value="pasantia" id="groups_3"/>
<input name="enviar" type="submit" />
</form>
<?
$union=implode(" ",$_GET['modalidad']);
//aca conexion
$result->query("select * from principal where modalidad_fijo like '%$union%'
while ($row = mysql_fetch_array($result))
{
echo $row[modalidad];
}
?> |