<?
$commento01 = "va molto bene";
$commento02 = "va abbastanza bene";

if ( $totale <= 5 ){
print "$commento01";
} else if ( $totale >= 6 && $totale <= 10 ){
print "$commento02";
}
?>