how to print to paper?

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
koor
Forum Newbie
Posts: 1
Joined: Thu Dec 21, 2006 9:32 pm

how to print to paper?

Post 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
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

just to be clear, you want to fetch information from a database and print it?
nickvd
DevNet Resident
Posts: 1027
Joined: Thu Mar 10, 2005 5:27 pm
Location: Southern Ontario
Contact:

Post by nickvd »

File -> Print
User avatar
neophyte
DevNet Resident
Posts: 1537
Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota

Post by neophyte »

:lol:
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post 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
User avatar
dibyendrah
Forum Contributor
Posts: 491
Joined: Wed Oct 19, 2005 5:14 am
Location: Nepal
Contact:

Post 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.
Post Reply