Codice PHP:
$codiceFiscale "...";
$query "SELECT sum(prezzo) as s FROM esito WHERE paziente='$codiceFiscale'"