Open(); $pdf->AddPage(); //set initial y axis position per page $y_axis_initial = 50; // mula table header BIL $y_axis = 72; // mula table header data // PRINT HEADER NAMA PPD $pdf->SetFont('helvetica', 'B', 12); $pdf->SetX(270); $pdf->Cell(15,4,'SULIT', 0, 0, 'R', 0); $pdf->Image('/home/ktefores/public_html/SSO/galeri/uploads/'.$_SESSION['kp'].'.jpg',12,6,12); //$pdf->Image('/home/ktefores/public_html/SSO/images/jata.png',12,6,20); $pdf->Image('/home/ktefores/public_html/SSO/images/ktefh-icon.png',250,8,15); $pdf->SetFont('helvetica', 'B', 13); $pdf->SetY(10); $pdf->Cell(290,0,'LAPORAN PEMANTAUAN KECERIAAN KELAS-KELAS TAHUN : '. $curYear, 0, 0, 'C', 0); $pdf->SetFont('helvetica', 'B', 12); $pdf->Cell(275,4,"KOLEJ TINGKATAN ENAM FOREST HEIGHTS", 0, 1, 'C', 0); $pdf->SetFont('helvetica', 'B', 11); $pdf->Cell(275,4,"Jalan Forest heights 4/2 Taman Dusun Setia 70100, Seremban, NEGERI SEMBILAN", 0, 1, 'C', 0); $pdf->SetFont('helvetica', 'B', 9); $pdf->Cell(275,4,"TEL : 06-7633951, FAKS : 06-7633952 Laman Web : http://ktefores.net", 0, 1, 'C', 0); //Select table recordsource to show in your data //$res=mysql_query("SELECT * FROM TMUR ORDER BY ID DESC", $link); //$rowA = mysql_fetch_array($res); $pdf->SetY(30); $pdf->Cell(100,0,'NAMA PEGAWAI : '. $_SESSION['nama'], 0, 0, 'L', 0); $pdf->SetX(120); //$pdf->Cell(100,0,'MINGGU : '. $rowA['MGU'], 0, 0, 'L', 0); $pdf->SetFont('helvetica', 'B', 11); $pdf->SetY(34); $str = "MARKAH KECERIAAN KELAS-KELAS TAHUN : $curYear"; $pdf->Cell(267,8, "$str" , 1, 1, 'C', 0); //print column titles for the actual page