Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.
Moderator: General Moderators
koor
Forum Newbie
Posts: 1 Joined: Thu Dec 21, 2006 9:32 pm
Post
by koor » Thu Dec 21, 2006 9:47 pm
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.
John Cartwright
Site Admin
Posts: 11470 Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:
Post
by John Cartwright » Thu Dec 21, 2006 9:54 pm
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 » Thu Dec 21, 2006 10:00 pm
File -> Print
neophyte
DevNet Resident
Posts: 1537 Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota
Post
by neophyte » Thu Dec 21, 2006 10:44 pm
Kieran Huggins
DevNet Master
Posts: 3635 Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:
Post
by Kieran Huggins » Thu Dec 21, 2006 11:19 pm
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
dibyendrah
Forum Contributor
Posts: 491 Joined: Wed Oct 19, 2005 5:14 am
Location: Nepal
Contact:
Post
by dibyendrah » Fri Dec 22, 2006 12:46 am
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.