mira te dejare un codigo de una agenda que hice utilice busqueda muy similar a lo que tu necesitas .. obviamente tu la tendras que dejar dentro de un form espero que te sirva
Código PHP:
Ver original<?php
include 'conexion.php';
conectar();
?>
<form id="form" name="form" method="post" action="agenda.php">
<h1>Agenda On Line </h1>
<p>Ingrese un Parametro para Consultar</p>
<p>
<label>Nombre o Ocupacion<span class="small">Ingr a lo menos 3 letras</span> </label>
<input type="text" name="dato" id="dato" />
<label>Dpto Desempeño<span class="small">Dpto de Funciones</span> </label>
<select name="depto" id="depto">
<option value="0">Depto Funciones </option>
<?php
{
echo "<option value='$registro[0]''$registro[1]'>$registro[1]</option>";
}
?>
</select>
</p>
<button type="submit" name="buscar">Buscar</button>
<div class="spacer"></div>
</form>
</div>
</div>
<?
if (isset($_POST['buscar'])){ //paso las Variables a metodo POST
$dato=$_POST['dato'];
$depto=$_POST['depto'];
?>
<div id="apDiv8">
<table width="839" border="0" cellspacing="0" cellpadding="0">
<tr>
<th width="136">Nombre</th>
<th width="104">Cargo</th>
<th width="70">Anexo</th>
<th width="103">Celular</th>
<th width="91">Red Fija</th>
<th width="96">E-M@il</th>
</tr>
<?php
$consul=mysql_query("SELECT * FROM t_agenda where nombre like '%$dato%' or id_dpto ='$depto' "); {
?>
<tr>
<td><?php echo $reg['nombre'] ?></td>
<td><?php echo $reg['cargo'] ?></td>
<td><?php echo $reg['anexo'] ?></td>
<td><?php echo $reg['celular'] ?></td>
<td><?php echo $reg['fono'] ?></td>
<td><?php echo $reg['mail'] ?></td>
</tr>
<?php }} ?>
</table>