I've tried my darnest to avoid asking this question (I viewed and try a ton of examples already on the forum), most partially work which leads me to believe I'm missing something. I have a link setup to export my table into a downloadable .csv file. When I click the link the code dumps the table in csv format, BUT instead of it loading as an attachment it just displays the contents of the table in html.

A, B, C, D, A, B, C, D -- I have no idea why when I click my link (download.php?action=download) that is does not prompt me to save the file to my hard drive, instead of just displaying the information on the page.

So...I figured out why out of the 20+ examples I tried I could not get the download to work. Apparently you have to have a blank php file. Meaning there should only be php code and no html. As soon as I did that all the header features worked w/o a problem. Thanks for the help everyone.
–
snapplexDec 22 '11 at 2:04