0) { $row = mysql_fetch_array($res); Header( "Content-type: image/$row[format]"); echo $row["image"]; } ?>