
aqui pongo el codigo para que me digan a ver si es error mio
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<?
//Conexion con la base
$dbh=mysql_connect ("localhost", "root", "") or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("consultex");
//Ejecutamos la sentencia SQL
$busc=$_REQUEST['buscar'];
echo "La Palabra a Buscar es :",$busc;
$result=mysql_db_query("consultex","select * from links WHERE titulo contain '$busc'");
?>
<table align="center">
<tr>
<th>Titulo</th>
<th>Dirección</th>
<th>Descripcion</th>
</tr>
<?
//Mostramos los registros
if ($result=" ")
{echo "no se encontraron registros";}
else {
while ($row=mysql_fetch_array($result));
{
echo "Los resultados son";
echo '<tr><td>'.$row["link"].'</td>';
echo '<tr><td>'.$row["titulo"].'</td>';
echo '<td>'.$row["descripcion"].'</td></tr>';
}
mysql_free_result($result);
}
?>
</table>
</body>
</html>