Si lo listo normal es decir sin busqueda si me muestra todas las imagenes
Código PHP:
<?php
mysql_connect("localhost","root","yoyoyo");
$result=mysql_db_query("path","select * from imagenes where nombre='".mysql_escape_string($_POST['caja1'])."' ");
//Mostramos los registros
while ($row=mysql_fetch_assoc($result))
{
echo '<img src="'.$row['ruta'].'">';
echo '</img>';
}
mysql_free_result($result);
?>
Código HTML:
<table border=5> <tr> <td>Clave Imagen</td> <td><input name="caja1" size="18" value= " "></td> </tr> <TR> <TD><input type=SUBMIT name=BOTON2 value ="Consultar"></TD> <TD><input type=RESET name=BOTON1 value ="Borrar"></TD> </TR> </table>