beh anche stampafoto.php deve sapere l'id della foto da prendere... quindi..

notizie.php
<?php

$query = "SELECT foto,news1, Type from news where idn1='$idn1'";
@mysql_connect("localhost", "root", "") or die("Connessione fallita !");
@mysql_select_db("PORTALE") or die("Selezione Database fallita !");
$query = "SELECT news1 from news where idn1='$idn1'";
$select = @mysql_query($query) or die("Query fallita !");
$result = @mysql_fetch_array($select);
$notizia=$result["news1"];
echo "<img src=stampafoto.php?idn1=$idn1>";
echo"
";
echo $notizia;

?>


e



stampafoto.php
<?php

@mysql_connect("localhost", "root", "") or die("Connessione fallita !");
@mysql_select_db("PORTALE") or die("Selezione Database fallita !");
$query = "SELECT foto, Type from news where idn1='$idn1'";
$select = @mysql_query($query) or die("Query fallita !");
$result = @mysql_fetch_array($select);
$data= $result["foto"];
$type = $result["Type"];
Header("Content-type: $type");
echo $data;

?>