I wanna generate pdf repoert usind fpdf.
I get this error.
FPDF error: Some data has already been output, can’t send PDF file. I cannot change the order of the coding.
[code=php]
<?php
require “Classes/receipt/receipt.php”;
?>
<p>test number</p>
<p>some texts BLlllllllllllllllllllll</p>
<?php
@$_SESSION[‘pay’] = “K.K.H Randeny”;
@$_SESSION[‘date’] = “12-Aug-2011”;
@$_SESSION[‘description’] = “Business Promortion”;
@$_SESSION[‘amount’] = “4,250.00”;
$print_receipt = new receipt_print();
$print_receipt->AddPage();
$print_receipt->Main_Body($_SESSION[‘pay’],$_SESSION[‘date’],$_SESSION[‘amount’]);
$print_receipt->Left_Body($_SESSION[‘pay’],$_SESSION[‘date’],$_SESSION[‘description’],$_SESSION[‘amount’]);
$print_receipt->Output();
?>