The average self-esteem score for people who have taken this survey is $esteemmean.

";
if($esteem > $esteemmean)
{
print "Your self-esteem is higher than that of the average participant.";
}
if($esteem < $esteemmean){
print "Your self-esteem is lower than that of the average participant.";
}
print "

To date, $n people have taken this survey.";
print "";
print $query->end_html;