Page 1 of 1

how to print to paper?

Posted: Thu Dec 21, 2006 9:47 pm
by koor
hi! my name is pa'de! i wanna ask about printing a *.php which contains db things into a paper. or let me say "I need a php class to print a web based database (in ms word)" can u do me a favor in this?
thank u for letting a member of this forum so that I can ask. :D

Posted: Thu Dec 21, 2006 9:54 pm
by John Cartwright
just to be clear, you want to fetch information from a database and print it?

Posted: Thu Dec 21, 2006 10:00 pm
by nickvd
File -> Print

Posted: Thu Dec 21, 2006 10:44 pm
by neophyte
:lol:

Posted: Thu Dec 21, 2006 11:19 pm
by Kieran Huggins
Use xhtml & css to style the output for print. You can then trigger the print with some Javascript - a quick Google search will reveal some sample code.

Cheers,
Kieran

Posted: Fri Dec 22, 2006 12:46 am
by dibyendrah
phpmyadmin has that kind of facility builtin from which you can export into different formats.

For better output for printing, you may refer to php print class. Get them from phpclasses.org.