salve a tutti sto tribulando con le classi perchè mi da un errore quando richiamo la classe ma non riesco a capire dove sbaglio...
spero che qualcuno ne capisca più di me e mi possa aiutare
provo a postare il codice..

Codice PHP:
class Pdf extends fpdf{
            function 
intestazione($condpag$codfisc$partiva)
            {
                
$this->SetFont('Arial''b'6);
                
$this->cell(30,4,"condizione pagamento"'LTR',0,'c');
                
$this->Cell(30,4,"codice fiscale"'LTR'0'c');
                
$this->Cell(30,4,"partita iva"'LTR'0'c');
                
$this->ln();
                
$this->cell(30,4,$condpag'LBR',0,'c');
                
$this->Cell(30,4,$codfic'LBR'0'c');
                
$this->Cell(30,4,$partiva'LBR'0'c');
                
            }
        }
        
$p = new fpdf();
        
$p->Open();
        
$p->AddPage();

.....

$sqlstr="SELECT  * FROM testata WHERE NumeroFattura = $NumFat ";
$risultato=mysql_query($sqlstr);
$riga=mysql_fetch_array($risultato);

$PartitaIva=$riga['PartitaIva'];
$CodiceFiscale=$riga['CodiceFiscale'];
$CondPagamento=$riga['CondPagamento'];

...

$p-> intestazione($CondPagamento$CodiceFiscale$PartitaIva);//line 95
$p->output(); 
provo a postare anche l'errore...
Fatal error: Call to undefined method FPDF::intestazione() in C:\Program Files\EasyPHP-12.1\www\my portable files\prova.php on line 95