";} mysql_select_db("partnershipuk",$db); if (mysql_errno()) {echo mysql_errno().": ".mysql_error()."
";} return $db; } openpartnershipdb(); $docid = $_REQUEST['docid']; $sql = "SELECT pdf FROM perspectives WHERE docid='$docid'"; if ($debug){echo $sql."
";} $result = mysql_query($sql); if (mysql_errno()) {echo mysql_errno().": ".mysql_error()."
";} $myrow=mysql_fetch_array($result); header("Content-Type: application/pdf"); echo $myrow['pdf']; ?>