require('fpdf/fpdf.php');如何使用fpdf獲取數據表格數據庫
$ pdf = new FPDF('P','mm','A4');
$ connection = mysqli_connect('localhost','root','','timber1');
$ sql1 =「select * from tbl_customer where customerid = 1053597」;
$ result = mysqli_query($ connection,$ sql1);
$ row = mysqli_fetch_array($ result);
$ cus_name = $ row ['name'];
$ pdf-> Cell(10,50,$ cus_name,0);
$ pdf-> Output();
其中是$ pdf定義? –