Introduction
In this article I will explain how to display data in a PDF file using PHP. To creating the PDF file, I will first includ the "fpdf.php" file of your pdf.php. This file you can download free for creating PDF files. Mostly for creating PDF and display the data in a PDF file so this file fpdf.php and the font requirements of your new PDF file. The font folder includes many types of fonts and this folder is put in the same directory, "www".
Example
This is a "connection.php" for creating a connection to your table in a MySQL database:
<?php
$con = mysql_connect("localhost","root","");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("smart", $con);
mysql_query("SELECT * From form");
?>



Abubakar IsmailPosted Aug 19, 2015, 6:02 AM
need help getting this error FPDF error: Some data has already been output, can't send PDF file
Kavitha BalaPosted Jun 9, 2015, 3:10 AM
Working well