I have a bit of a problem I have a database, now I want to do 2 things with it. I want sent an html newsletter with images to the clients in the database and I want to print that newsletter directly to the printer but it (the printing) must loop over the records in the database. Can anyone of you guys help me please? Thanks...
First off can you be a bit more specific? Possibly paste code? Secondly you are tying to send an email that autoprints?
Sorry for relying so late, was busy on another project, I want to print a page directly to the printer and it should also display the images. I managed to print to the printer but it only prints the raw html. any suggestions... <?php $handle1 = "<html><body><img src=\"one.gif\" width=\"202\" height=\"140\" /></body></html>"; //eval("\$handle1 = \"$handle1\";"); $printer = "Color printer"; //This info has been changed for privacy reasons $handle = printer_open($printer); printer_set_option($handle, PRINTER_MODE, "raw"); printer_write($handle, "$handle1"); printer_close($handle); echo $printer; //echo $handle1 ; ?>