0

im using fpdf.php library have some extension the pdf_lp.php then i got this error on my codes... hope somebody can help me identify my error.. any help is very much appreciated.

    <?php
date_default_timezone_set('Asia/Manila');

require_once('./pdf_lp.php');
include ('connect.php');
//  $sql = mysql_query("SELECT * FROM mydb WHERE contractno = '$_SESSION[contractno]'") 
$sql = "SELECT * FROM mydb WHERE contractno = '{$_REQUEST[contractno]}'" ;
$today = date('m/d/Y');

if ($data = mysql_query($sql))
   $row = mysql_fetch_assoc($data);

$fullname = $row['fname'].' '.$row['sname'].' '.$row['mi'];
$dob = $row['dob'];
$contract = $row['contractno'];
$application = $row['applnno'];
$email = $row['eadd'];


$angpageko = new lpPDF('P','mm', 'letter');

$angpageko->SetLeftMargin(0);
$angpageko->SetRightMargin(0);
$angpageko->SetTopMargin(0);

$angpageko->AddPage();

//this the image of my pdf
$angpageko->Image('lifehead1.gif', 73, 15, 62, 16);

$angpageko->SetFont('times', 'I', 30);

$angpageko->SetXY(55, 50);  
$angpageko->Cell(98, 8, 'Proof List', 0, 0, 'C');

$angpageko->SetFont('times', 'I', 22);
$angpageko->SetXY(55, 65);  
$angpageko->Cell(98, 4, $fullname, 0, 0, 'C');


//some more codes

$angpageko->Output();

Edited by kit007: change of spelling

1
Contributor
2
Replies
7
Views
5 Years
Discussion Span
Last Post by kit007
0

my problem with the code above is that it cant display the image in my pdf form..please help.tnx

0

found my error, i just need to transfer it to pdf folder..cheers!

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.