fai cosi
<?php

include("server.php");
$query = "SELECT * FROM img_artista WHERE id = '" . $_GET["id"] . "'";
$select = @mysql_query($query) or die("Query fallita !");
$result = mysql_fetch_array($select) or die("err");
$data = $result["immagine"];
$type = $result["type"];
Header("Content-type: $type");
echo $data;
@mysql_close();
?>

ci togli la posizione