Perchè è una classe a restituirmi i dati:


Codice PHP:
//INCLUDO LA CLASSE CHE GESTISCE I DATI ATTIVITA'
require_once("include/classe.chiamata.php");
//AVVIO L'ISTANZA DELLA CLASSE
$oggChiamata = new Estrapola();                                                                    
$oggChiamata->IDATTIVITA $_GET['idATTIVITA'];                                                    
$EstrapolaUltimoCommento $oggChiamata->estrapolaUltimoCommento($oggChiamata->IDATTIVITA);
$DatiCommenti $oggChiamata->elaboraUltimoCommento($EstrapolaUltimoCommento);                    

//PARTO CON IL CICLO
while($DatiCommenti){
echo
"
<p class=\"commenti_ajax\">
<img src=\"img/avatar.gif\" class=\"avatar\" />
<span class=\"titolo_commenti\">
$DatiCommenti[TitoloCommento]</span>

<span class=\"corpo_commenti\">
$DatiCommenti[Commento]</span>

<span class=\"coda_commenti\">Rilasciato da 
$DatiCommenti[Link] il [i]$DataCommenti[GiornoCommento] alle ore $DatiCommenti[OraCommento][/i]</span>
</p>
"
;
}
?>