PHP: Generating PDF by fetching data from database

I Have just started to learn PHP. As a task,

I submitted a form which sent the values to the MySQL database, Now, I want to fetch these values from the database and display it in a letterhead format and then have to output that letterhead as a PDF file.

Please suggest me a way to do that from the basic level, I tried to follow 1-2 questions here but couldnt get any results. I need a step-by-step procedure…

Thanks in advance!

Have you tried FPDF?
I have not used it, so can’t give any specific advice on how to use it, but it’s a tool I’m arare of for creating PDFs in PHP.

I have used it and have found it really easy to use. It and the extensions people have written for it all use classes so once you know how to create classes in PHP it is even easy to add your own custom extensions

2 Likes

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.