Pues no entendi porque la tabla con los 10 campos, no entendi alli, pero lo de la busqueda, es decir yo tengo en el form de busqueda 6 campos. tonces si un campo no se llena al buscar, como tengo un "AND" no me arroja anda porque sera dato y NUL y NULL y NULL...
Entonces quiero que busque segun los campos que han sido ingresados, segun mi criterio y logica tengo que hacer permutaciones donde haga un codigo diferente para cada caso es decir cuando cada campo este lleno...
este es el form de busqueda:
Código PHP:
Ver original<form method="POST" action="cementerio_buscar.php" onSubmit="return checkform(this)">
<table border="0" width="100%">
<tr>
<td class="texto2" width="20%">Fecha de Inhumacion:</td>
<td>
<input type="text" name="Fentierro" size="20" id="dateDefault1" onKeyPress="return(currencyFormat(this,'/','/',event))"/>
</td>
</tr>
</table>
<table border="0" width="100%">
<tr>
<td class="texto2" width="20%">Nombre y Apellido:</td>
<td width="50%"><input type="text" size="50" name="Nombre"></td>
<td class="texto2" width="10%">Edad:</td>
<td ><input type="text" size="10" name="Edad"></td>
</tr>
</table>
<table border="0" width="100%">
<tr>
<td class="texto2" width="20%">Numero de Boveda:</td>
<td width="10%"><input type="text" size="5" name="Numboveda"></td>
<td class="texto2" width="15%">Tipo de Boveda:</td>
<td width="25%">
<select size="1" name="Tipo">
<option></option>
<option>sencilla</option>
<option>doble</option>
<option>infantil</option>
<option>restos</option>
<option>feto</option>
</select>
</td>
<td class="texto2" width="10%">Bloque:</td>
<td><input type="text" size="10" name="Bloque"></td>
</tr>
</table>
<BR><BR>
<table border="0" width="100%">
<tr>
<td width="15%"></td>
<td width="20%"><input type="submit" name ="submit" value="Buscar"></td>
<td width="30%"><input type="reset" name ="clear" value="Limpiar"></td>
</tr>
</table>
</form>
entonces para la busqueda solo debo tomar en cuenta los datos que han sidos ingresados...
Disculpa lo perdido que estoy pero no le veo mas camino...