htmlPage+="<TD>Data di vaccinazione</TD>";
htmlPage+="</TR>";
User paziente = loggedUser;
dbManager db = new dbManager();
ResultSet res = db.getPatientVaccinations(paziente.getId());
db.releaseConnection();
try{
if(res.first()){
while(!res.isAfterLast()){
int medId = res.getInt("doctor_id");
String date = res.getString("vaccination_date");
dbManager dbMed = new dbManager();
ResultSet doctor = dbMed.getDoctor(medId);
dbMed.releaseConnection();
String doctorName="";
if(doctor.first()){
while(!doctor.isAfterLast()){
doctorName = doctor.getString("name")+" "+doctor.getString("surname");