im beginner in php code and i want to export reports to pdf.
Hi, im not at my computer but i use dompdf, its free and theres a youtube tutorial on how to use it.
If you have any problems ill help you tommorow
thank u. its great. but the problem is what part should include in my code? can u help me with a simple example?
[php]
#i dont know what your using this for so ill just type some random stuff
#Make sure you include the config file
change the path of the file to match what u have
require_once(“lib/dompdf/dompdf_config.inc.php”);
$name = “My name is oslo…”;
if you wanted to add onto that then do this
$name .= " and im trying to make a pdf from php";
$dompdf = new DOMPDF();
$dompdf->load_html($name);
$dompdf->render();
#change the file name below to name the pdf what ever you want
$dompdf->stream(“FILENAME.pdf”);
[/php]