how can i create a pdf from my database record

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
shaun112
Forum Newbie
Posts: 4
Joined: Fri Jul 04, 2008 5:38 am

how can i create a pdf from my database record

Post by shaun112 »

i have a database that hold student information and i want to create a situation where by all this information will be printed out to a pdf page by page. to make my self more clearer i want each roll from the database to be printed on each page.
example

if i have 10 rolls in the db,this will mean 10 pages of pdf's.
i don't know how to go about this, and process also as to automatic(one click print all the documents)
pleas i realy need help on this, i have deadline of wenesday. SOS SOS SOS SOS
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Re: how can i create a pdf from my database record

Post by jaoudestudios »

I have not done it before, but I have read into it a while back as I was going to do something similar.

There are a few ways of converting from database to PDF. Some look better but are more difficult to initialise and setup.

Are you on a shared host? As I think you might need a couple of extra packages (not sure)

This method converts a html page to PDF, so that way it should be easier to style.

http://www.rustyparts.com/pdf.php

Let us know how you get on
Post Reply