title: How to Print BLOB Documents from a MySQL database
body: <p>I am new to PHP and am confused on what I thought would be a basic task. I have a lightbox that displays a list of documents kept as BLOBs in a MySQL database. I have checkboxes next to each document and a print button at the bottom. I simply want the user to select which documents to print and once they hit the print button their print dialog box opens. These are various formats, pdf, doc, xls, etc. My question is how do I send various formats at once to the print dialog without having to show the documents themselves or am I conceptually way off here? Do I need to create another lightbox that shows all the pages we want to print first and then just print everything in that lightbox? Is that even possible with various formats? A little push in the right direction here conceptually or even a good tutorial on php, javascript and printing options would be helpful. All my google searches dealt with printing to the screen. I need to print, print to a printer not display the BLOBs on the screen.  </p>