Ver Mensaje Individual
  #4 (permalink)  
Antiguo 24/12/2009, 06:41
Avatar de rompeguesos
rompeguesos
 
Fecha de Ingreso: marzo-2009
Mensajes: 692
Antigüedad: 15 años, 1 mes
Puntos: 8
Respuesta: ayuda para mostar imagen jpeg me devuelve la url y no la imagen

ponlo asi:

Código PHP:
<?php
header
("Content-Type: image/jpeg");
$link mysqli_connect($hostname,$user,$password,$database );
$query "select foto from foto where id_foto= $_GET[id_foto] ";
$result mysqli_query($link$query);

/* associative array */
while ($row mysqli_fetch_array($resultMYSQLI_ASSOC)){
//echo "{$row['foto']}<br>\n";

echo "<img src=/"".$row['foto']."/" /><br>\n";

}

/* free result set */
mysqli_free_result($result);

/* close connection */
mysqli_close($link);
?>