Print PDF file using PHP and MySQL

Language

Hi to all beginners in PHP and MySQL. This script will show you on how to print a PDF using FPDF in PHP and MySQL. How to install the script? 1. Unzip the downloaded file. Then copy the unzip to this path: xampp/htdocs/. 2. Goto the "db" folder. 3. Inside the "db" folder having a "tutorials" folder. Copy it to this path: xampp/mysql/data. 4. After you finish the above steps. 5. Goto to the web browser and run you script with this path: localhost/print_to_pdf/ 6. Enjoy! Hope will help you, especially in novice in PHP Programming. Thank you for reading...

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:

1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

Comments

Submitted byjamil (not verified)on Fri, 03/21/2014 - 14:52

great tutorial for beginners!
Submitted bysandysanju (not verified)on Sat, 05/03/2014 - 18:01

Deprecated: Function set_magic_quotes_runtime() is deprecated in D:\xampp\htdocs\print_to_pdf\fpdf.php on line 1165 Deprecated: Function set_magic_quotes_runtime() is deprecated in D:\xampp\htdocs\print_to_pdf\fpdf.php on line 1203 FPDF error: Some data has already been output, can't send PDF file
Submitted byAnonymous (not verified)on Thu, 06/26/2014 - 02:50

Line 1164: if (version_compare(PHP_VERSION, '5.3.0', '
Submitted byJerra (not verified)on Mon, 03/16/2015 - 12:58

Im using wamp server because xamp won't run in my pc what should i do?

Submitted byMeddle (not verified)on Fri, 09/01/2017 - 22:29

Some functions are deprecated! A lot of re-coding need. Sorry.

Add new comment