I finally could put a button
Call FPDF and create a PDF page with "hello world"
Now I would like to print with values
I have:
http: //.........atest5.php? SelectedID = 38
But then in this code, how to find this value ID = 38?
Code: Select all
<? php
// include (dirname (__ FILE__). '/../../../lib.php');
// require (dirname (__ FILE__). 'fpdfh.php');
require ('xxxxxxxxxx / fpdf / fpdf.php');
$ results = print_item_query ($ id);
$ pdf = new PDF_HTML ();
$ pdf-> AddPage ();
$ pdf-> SetFont ('Times', 'B', 14);
$ pdf-> Cell (0,10, 'Item:'. $ results ['id'], 1,1);
// $ pdf-> Cell (0,10, 'Description:'. $ results ['description'], 1,1);
$ pdf-> Output ();
exit;
//}
?>