
24/12/2009, 06:06
|
| | Fecha de Ingreso: febrero-2009
Mensajes: 443
Antigüedad: 16 años, 1 mes Puntos: 1 | |
Respuesta: ayuda para mostar imagen jpeg me devuelve la url y no la imagen no funciona
<?
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($result, MYSQLI_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);
?> |