ciao a tutti,

ecco l'errore a riga 29

Codice PHP:
<?php
    $result
=$conn->printprodotto($conn->link_id,1);
    if    (
$prodotto1    mysql_fetch_array($result))     
    {
$primoprodotto="&titolo1=".adattatesto($prodotto1['titolo'])."&riga1=".adattatesto($prodotto1['partecipazione_bonus'])."&riga2=".adattatesto($prodotto1['protezione_importo'])."&riga3=".adattatesto($prodotto1['sottostante'])."&riga4=".adattatesto($prodotto1['scadenza'])."&testo1=".adattatesto($prodotto1['testo'])."&titpop1=".adattatesto($prodotto1['titolo_approfondimenti'])."&pop1=".adattatesto($prodotto1['approfondimenti'])."&titpop2=".adattatesto($prodotto1['titolo_analisi'])."&pop2=".adattatesto($prodotto1['analisi']); 
    }
// end if
    
$result=$conn->printprodotto($conn->link_id,2);
    if    (
$prodotto2    mysql_fetch_array($result))     
    {
$secondoprodotto="&titolo2=".adattatesto($prodotto2['titolo'])."&riga5=".adattatesto($prodotto2['partecipazione_bonus'])."&riga6=".adattatesto($prodotto2['protezione_importo'])."&riga7=".adattatesto($prodotto2['sottostante'])."&riga8".adattatesto($prodotto2['scadenza'])."&testo2=".adattatesto($prodotto2['testo'])."&titpop3=".adattatesto($prodotto2['titolo_approfondimenti'])."&pop3=".adattatesto($prodotto2['approfondimenti'])."&titpop4=".adattatesto($prodotto2['titolo_analisi'])."&pop4=".adattatesto($prodotto2['analisi']);
    }
// end if
    
$result=$conn->printprodotto($conn->link_id,3);
    if    (
$prodotto3    mysql_fetch_array($result))     
    {
$terzoprodotto="&titolo3=".adattatesto($prodotto3['titolo'])."&riga9=".adattatesto($prodotto3['partecipazione_bonus'])."&riga10=".adattatesto($prodotto3['protezione_importo'])."&riga11=".adattatesto($prodotto3['sottostante'])."&riga12=".adattatesto($prodotto3['scadenza'])."&testo3="adattatesto($prodotto3['testo'])."&titpop5=".adattatesto($prodotto3['titolo_approfondimenti'])."&pop5=".adattatesto($prodotto3['approfondimenti'])."&titpop6=".adattatesto($prodotto3['titolo_analisi'])."&pop6=".adattatesto($prodotto3['analisi']);
    }
// end if
?>
l'errore è prima dell'ultimo //endif

Grazie in aniticipo.