Jump to content


Check out our Community Blogs

SecretCode

Member Since 14 May 2010
Offline Last Active May 18 2010 06:46 AM
-----

Topics I've Started

Populating a PDF file using PHP?

14 May 2010 - 09:15 AM

Hi,

Can someone help me? I’ve only been doing PHP for a few months, but I do have a good understanding of how it works and I can handle databases well. But what I would like to do would be fill a PDF file with information from my database. I know how to make a PDF file, but I have no clue how to connect it to my database. I’ve found some scripts on the subject, but nothing seems to work for me.

This is what I’m trying to do—have a user go to their personal information page and then convert the info into a PDF. So not only do I need to connect to my database and make a PDF, but I also need to call only that user’s information. So far I’ve been doing that by passing the user’s id through the URL and then using that as a key to call the matching information from my database, but I don't know if that would work when generating a PDF.

Any help would be appreciated, thanks!

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download