any document types: .txt, .doc, .pdf, etc. I have been trying to work on this code, but it doesn't work. I have also tried to add : header("Content-type: application/application/save");, but it keeps giving me "cannot add header information: warning".
$retrieve = "SELECT * FROM files";
$run = mysql_query ($retrieve);
$result = mysql_fetch_array ($run);
echo "<br><br><b>Filename from database, download file at link: </b> ";
$realpath = realpath ($uploadPath);
echo "<a href=\".$realpath.\">click</a>";