Just as a started try to remove sprintf from your code. PHP is very cool and doesn't actually need it.
<?php
mysql_connect("localhost", "root", "") or die(mysql_error());
mysql_select_db("resolve");
$result = mysql_query(sprintf("SELECT * from image WHERE title = %d", $_GET['id']));
$row = mysql_fetch_array($result);
header(sprintf("Content-type: %s", $row['FileType']));
print $row['Image'];
?>
becomes
<?php
mysql_connect("localhost", "root", "") or die(mysql_error());
mysql_select_db("resolve");
$result = mysql_query("SELECT * from image WHERE title = $_GET[id]");
$row = mysql_fetch_array($result);
header("Content-type: $row[FileType]");
print $row['Image'];
?>
instead of printing the image try just printing what is returned by mysql when you do that request and try printing the query you end up with like:
<?php
mysql_connect("localhost", "root", "") or die(mysql_error());
mysql_select_db("resolve");
$query = "SELECT * from image WHERE title = $_GET[id]";
$result = mysql_query($query);
print $query;
while ($row = mysql_fetch_array($result)) {
print_r($row);
}
?>
That may help you find out what's going on. Post what it returns if you still need help.