Salve a tutti,
ho un problema. Ho scritto il seguente script PHP per estrarre e visualizzare un immagine da un database, ma non funziona e non so il perchè.
Codice PHP:
<?php
//vis_image.php
include('configurazione_database.php');
$id_user_profile $_GET['id'];
$select_user_image_sql "SELECT * FROM immagini WHERE id_user = '$id_user_profile'";
$select_user_image mysql_query($select_user_image_sql) or die(mysql_error());
$select_user_image_row mysql_fetch_array($select_user_image);
$type $select_user_image_row['type'];
$image $slect_user_image_row['immagine'];
Header("Content-type: ".$type);
echo 
$image;
?>
e lo richiamo da un tag html <img>
Codice PHP:
echo "[img]vis_image.php?id=$profile_id[/img]"
Qualcuno potrebbe darmi una mano?
Grazie in anticipo!