Invece così, mi da' la tipica immagine con il punto di domanda piccola

cosa sbaglio ??????

Cosa intendi che devo mettere nell'alt ??? nel senso tu scrivi quello che vuoi non è un campo importante ???

Codice PHP:
<?php

require ("db_connect.php");

$query "SELECT * FROM annunci FROM annunci WHERE Id = ' user_id=".$_SESSION['user_id']. "' "

$arrResult mysql_fetch_array(mysql_query($query)); 

header("Content-type: ".$arrResult['tipo_file']); 

echo 
$arrResult['dati_file'];

?>

<html>
<body>

[img]immagini3.php?id=[/img]

</body>
</html>