"mssql.db.visityakima.com",
"port" => "1433",
"database" => "yvvcb"
);
$uid = "visityakima";
$pwd = "V1S1Ty4k1m4";
$conn = new PDO("sqlsrv:Server=".$options['host'].";Database=".$options['database'],$uid,$pwd);
$gID = $_GET['id'];
$sql = $conn->prepare("select imgData from tMemberImages where id = :gid");
$sql->bindParam(":gid",$gID);
$sql->execute();
$row = $sql->fetch();
if(!$row)
{
die();
}
$im = imagecreatefromstring(pack("H*", $row[0]));
header("Content-type: image/png");
imagepng($im);
?>