03-11-2013, 06:33 AM
(03-10-2013, 09:24 PM)w*74rd Wrote: thanks buat master eycha, atas review-nya. Sy jadi bisa belajar banyak..ckaak
UPDATE-sementara
coba ganti script yang di file fungsikoneksi.php dengan script ini:
Code:<?php require_once "keamanan.php"; $keamanan = new keamanan(); $keamanan->sqli(); require_once "fungsi.php"; require_once "dbfungsi.php"; require_once "thumbnailGenerator.php"; require_once "fpdf/fpdf.php"; $thumbnail = new thumbnailGenerator(); $fungsi = new fungsi(); $dbfungsi = new dbfungsi(); ?>
terus fiele pdf.php ganti dengn:
Code:<?php require('fungsikoneksi.php'); $keamanan->sqli(); $id = $_GET['w174rd']; class PDF extends FPDF { function Header() { $id = $_GET['w174rd']; $fungsi = new fungsi(); $dbfungsi = new dbfungsi(); $this->Image('gambar/w174rd.jpg',0,13,10,10,'','http://w174rd.tk'); $this->SetFont('Arial','B',12); $this->Cell(30,10,$dbfungsi->pdf_title($id),0,0,'L'); $this->Cell(132); $this->SetFont('Arial','',10); $this->Cell(30,10,'http://w174rd.tk/',10,0,'L'); $this->Line(11,18,198,18); $this->Ln(6); $this->SetFont('Arial','',7); $this->Cell(30,10,$dbfungsi->pdf_terbit($id),0,0,'L'); $this->Ln(15); } function Footer() { $this->SetY(-15); $this->SetFont('Arial','I',8); $this->Cell(0,10,'Halaman '.$this->PageNo().'',0,0,'R'); } } $pdf=new PDF('P','mm','A4'); $pdf->AliasNbPages(); $pdf->AddPage(); $pdf->SetFont('Times','',12); for($i=1;$i<=1;$i++) { $pdf->MultiCell(0, 5,$dbfungsi->pdf_post($id)); $pdf->MultiCell(0,5,''); } $pdf->Ln(6); $pdf->SetX(90); $pdf->Image('gambar/end-pdf.jpg'); $pdf->Output(); ?>
KEEP TESTTING ckakak
xixixix
Sip Dah






