file immagine.php

<?
$id=(int) $_GET['id'];
$result=mysql_query("SELECT immagine From tabella where id=$id");
echo mysql_result($result,0,'immagine');
?>

pagina html

<html>
<head>
</head>
<body>

</body>
</html>


così dovrebbe funzionare