Ver Mensaje Individual
  #1 (permalink)  
Antiguo 15/11/2005, 10:22
Avatar de ValerioJ
ValerioJ
 
Fecha de Ingreso: enero-2002
Ubicación: Calabozo -Edo. Guárico
Mensajes: 189
Antigüedad: 22 años, 2 meses
Puntos: 0
Mostrar una Imagen guardada en BD Mysql?

Hola amigas y amigos quisiera saber por qué no se ve la imagen en mi página, porque sólo me muestra una recuadro con una "x"

que estoy haciendo mal aquí?
esta es mi página que arma la imagen y el tipo la llamo ver_foto.php :
....
<?php
/* Script descargar_archivo.php */

include("conectarDB.php");
$link=Conectarse();

$qry = "SELECT tipo_archivo, fotografía,name_archivo FROM alumno WHERE ced_alumno=10012423486";
$res = mysql_query($qry,$link);
$tipo = mysql_result($res, 0, "tipo_archivo");
$contenido = mysql_result($res, 0, "fotografía");
$nombre = mysql_result($res, 0, "name_archivo");
$res_array = mysql_fetch_array($res);
header("Content-Type: $res_array[0]");
echo $res_array[1];
?>

....y esta la que finalmente debería mostrar la imagen que extraigo:

<html>
<head>
<title>Fotografía Guardada</title>

</head>

<body>
<img src="ver_foto.php" height="100" width="120">
</body>
</html>


por favor si alguien sabe cual es la falla me ayude Gracias....
__________________
ValerioJ