Print PDF file using PHP and MySQL

Submitted by: 
Language: 
Visitors have accessed this post 28287 times.

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

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

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

Hi, man I enjoying all ur programs like to talk to u 1 on 1. Please call me on +2348126874255 or email me on [email protected] I will be waiting for your responses

Line 1164:

if (version_compare(PHP_VERSION, '5.3.0', '<')) {
$mqr=get_magic_quotes_runtime();
set_magic_quotes_runtime(0);
}
Line 1203:

if (version_compare(PHP_VERSION, '5.3.0', '<')) {
set_magic_quotes_runtime($mqr);
}

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

Just click the download button above.

MR

Pls send me source code
[email protected]

great tutorial for beginners!

hi..thank you..hope it will help..

MR

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • You may insert videos with [video:URL]
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <th> <img> <h1> <h2> <h3> <iframe> [video]
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <asp>, <c>, <cpp>, <csharp>, <css>, <html4strict>, <java>, <javascript>, <mysql>, <php>, <python>, <sql>, <vb>, <vbnet>. The supported tag styles are: <foo>, [foo].
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.