Saludos, necesito ayuda para una web. Este código muestra los productos de una BD. Quiero que aparezca un <input> y que cuando escriba el producto se busque inmediatamente.
Saludos.
Código PHP:
Ver original<?php
if ($_SESSION["validation"]){}else{header("Location: ../index.php");}
?>
<html>
<html>
<--!CODIGO HTML
<?php
define('DB_SERVER1','localhost'); define('DB_PASS1','c1e9s9a7r');
echo"
<table border=1>
<tr>
<td>Ref</td>
<td>Nombre</td>
<td>Descripción</td>
<td>Precio</td>
</tr>
";
$tabla = mysql_query("SELECT * FROM productos"); // selecciono todos los registros de la tabla usuarios, ordenado por nombre
if($registro['ref'] == ""){}else{
echo"<tr>";
echo "<td>".$registro['ref']."</td>";
echo"<td> ".$registro['nombre']."</td>";
echo "<td>".$registro['descripcion']."</td>";
echo "<td>".$registro['precio']."€</td>";
echo"</tr>";
}
}
echo"
</table>";
?>
</td>
<td width=10></td>
<td width=124 align=center valign="top">
<!--LATERAL DERECHO-->
</td>
</table>
</body>
</html>