mysql_select_db("inventario", $link);
$sql = "SELECT acceso, inventa, marca, modelo FROM equipo WHERE nombre LIKE '%$buscar%' ORDER BY nombre";
$result = mysql_query($sql, $link);
if ($row = mysql_fetch_array($result)){
echo "<table border = '1'> \n";
//Mostramos los nombres de las tablas
//echo "<tr> \ndigo" style="margin-left: 50">echo "<tr> \n";
mysql_field_seek($result,0);
while ($field = mysql_fetch_field($result)){
echo "<td><b>$field->name</b></td> \n";
}
echo "</tr> \n";
do {
echo "<tr> \n";
echo "<td>".$row["Accesorio"]."</td> \n";
echo "<td>".$row["Inventario"]."</td> \n";
echo "<td>".$row["Marca"]."</td> \n";
echo "<td>".$row["Modelo"]."</td> \n";
echo "<td><a
} while ($row = mysql_fetch_array($result));
echo "</table> \n";
} else {
echo "<p>¡No se ha encontrado ningún registro!</p>\n"; }