Este es mi buscador:
![](http://i59.tinypic.com/2dwi2xv.jpg)
Este es el código:
Código PHP:
<center>
<form name="form1" method="post" action="credito.php" id="cdr" >
<h3>Buscar Credito</h3>
<p>
<input name="busca" type="text" id="busqueda">
<input type="submit" name="Submit" value="buscar" />
</p>
</p>
</form>
<p>
<?php
$busca="";
$busca=$_POST['busca'];
mysql_select_db("corsalag_corsa");//nombre de la base de datos
if($busca!=""){
$busqueda=mysql_query("SELECT * FROM `TABLE 9` WHERE Credito LIKE '%".$busca."%'");//cambiar nombre de la tabla de busqueda
?>
<table width="700" border="1" id="tab">
<tr>
<td width="10">Id </td>
<td width="10">Numero de credito</td>
<td width="10">Acreditado</td>
<td width="10">Abogado</td>
</tr>
<?php
while($f=mysql_fetch_array($busqueda)){
echo '<tr>';
echo '<td width="19">'.$f['id'].'</td>';
echo '<td width="157">'.$f['Credito'].'</td>';
echo '<td width="157">'.$f['Acreditado'].'</td>';
echo '<td width="221">'.$f['ABOGADO'].'</td>';
echo '</tr>';
}
}
?>
Pero obviamente no puedo meter un php dentro de otro, en la imagen abajo se muestran unos créditos, si a estos les doy click sí se abre la ventana para modificarlos, pero en LA BUSQUEDA NO!!!!
AYUDA!!!
![lloron](http://static.forosdelweb.com/fdwtheme/images/smilies/chillando.png)