Codice PHP:
<?php
define
('FPDF_FONTPATH','../font/');
require(
'../fpdf.php');
include(
'../../../connecttodb.php');

class 
PDF extends FPDF
{
//Page header
function Header()
{
    
//Logo
    
$this->Image('intestazione.jpg',0,0);
    
//Arial bold 15
    
$this->SetFont('Arial','B',15);
    
//Move to the right
    
$this->Cell(80);
    
//Title
    //$this->Cell(30,10,'Title',1,0,'C');
    //Line break
    
$this->Ln(20);
}

//Page footer
function Footer()
{
    
//Position at 1.5 cm from bottom
    
$this->SetY(-15);
    
//Arial italic 8
    
$this->SetFont('Arial','I',8);
    
//Page number
    
$this->Cell(0,10,'Page '.$this->PageNo().'/{nb}',0,0,'C');
}
}

//Instanciation of inherited class
$pdf=new PDF();
$pdf->AliasNbPages();
$pdf->AddPage();
$_POST['idproprietario'] = '1';
// ******** P R O P R I E T A R I O ************
$_POST['query_proprietario']    =     mysql_query("") or die ('errore query');
$_POST['query_telefono']         =     mysql_query("") or die ('errore query recapito');
$_POST['query_casa']             =    mysql_query("") or die ('erore nel mostrare la casa');
$_POST['idcasa']                =    mysql_result($_POST['query_casa'],0);
$_POST['query_dettaglio']        =    mysql_query("select * from tabella where casa='".$_POST['casa']."'") or die('errore nel mostrare il dettaglio');
ecc....
l'errore si trovava all'ultima riga che e' la 45... pero' lui ha dato errore alla 25...
saranno i commenti?