\n"; $myLink = mysql_fetch_array($LinkResult); $mypicture = $myLink['document']; $mytype = $myLink["doc_type"]; $myfilename = $myLink["doc_name"]; // header("Content-Type: {$mytype}"); header("Content-Disposition: attachment; filename={$myfilename}"); echo $mypicture; // } else { // echo "Sorry, there was an unknown error and I have given up. Please let us know you got this error."; // } ?>