Estoy intentando hacer una busqueda exacta, pero al hacer una busqueda no me entrega ni un resultado. Adjunto abajo el codigo
Código PHP:
<?
$buscar=$HTTP_POST_VARS['buscar'];
$conex= mysql_connect ("localhost","user","pass")
or die ("No se pudo realizar la conexión");
mysql_select_db("bd", $conex);
$sql = "SELECT * FROM clientes WHERE id_cliente = '$buscar'";
$result = mysql_query($sql, $conex);
echo "<table><tr>";
while ($field = mysql_fetch_field($result)){
echo "<td>$field->name</td> \n";
}
echo "</tr> \n";
do {
echo "<tr> \n";
echo "<td>".$row["id_cliente"]."</td> \n";
echo "<td>".$row["empresa"]."</td> \n";
echo "<td>".$row["contacto"]."</td> \n";
echo "<td>".$row["rut"]."</td> \n";
echo "<td>".$row["fecha_cot"]."</td> \n";
echo "<td>".$row["telefono"]."</td> \n";
echo "<td><a href='mailto:".$row["email"]."'>".$row["email"]."</a></td> \n";
echo "<td>".$row["fax"]."</td> \n";
echo "<td>".$row["area"]."</td> \n";
echo "</tr> \n";
} while ($row = mysql_fetch_array($result));
echo "</table> \n";
SAludos a todos y muchas gracias
![Aplauso](http://static.forosdelweb.com/fdwtheme/images/smilies/aplausos.gif)