prepare("SELECT impfstoff, date,terminart, ZIminimal, ZImaximal, ZIaktiv, ZIbiontech, ZIastra, ZImoderna FROM timeslots INNER JOIN impfstoff ON timeslots.impfstoff = impfstoff.impfid WHERE timeid = :timeid"); $statementtermin->execute(array('timeid' => $timeid)); $rowtime = $statementtermin->fetch(PDO::FETCH_ASSOC); $ZIaktiv = $rowtime["ZIaktiv"]; $ZIminimal = $rowtime["ZIminimal"]; $ZImaximal = $rowtime["ZImaximal"]; $ZIbiontech = $rowtime["ZIbiontech"]; $ZIastra = $rowtime["ZIastra"]; $ZImoderna = $rowtime["ZImoderna"]; $impfname = $rowtime["impfname"]; $terminart = $rowtime["terminart"]; $minimaldate = date_create($rowtime["date"]); date_add($minimaldate, date_interval_create_from_date_string($ZIminimal . ' days')); $minimaldate = date_format($minimaldate, 'Y-m-d'); $maximaldate = date_create($rowtime["date"]); date_add($maximaldate, date_interval_create_from_date_string($ZImaximal . ' days')); $maximaldate = date_format($maximaldate, 'Y-m-d'); $impfstoffstring = ""; $terminartstring = ""; if($ZIaktiv && ($terminart == 1 || $terminart == 0) ){ if($ZIbiontech){ if($impfstoffstring == ""){ $impfstoffstring = $impfstoffstring . "(impfstoff='3'"; }else{ $impfstoffstring = $impfstoffstring . " OR impfstoff='3'"; } } if($ZIastra){ if($impfstoffstring == ""){ $impfstoffstring = $impfstoffstring . "(impfstoff='2'"; }else{ $impfstoffstring = $impfstoffstring . " OR impfstoff='2'"; } } if($ZImoderna){ if($impfstoffstring == ""){ $impfstoffstring = $impfstoffstring . "(impfstoff='5'"; }else{ $impfstoffstring = $impfstoffstring . " OR impfstoff='5'"; } } $impfstoffstring = $impfstoffstring . ")"; $terminartstring = " AND (terminart='1' OR terminart='3' OR terminart='5')"; $statement = $pdo->prepare("SELECT date,start,ende,impfdosen,timeid,impfstoff FROM timeslots WHERE date>= '$minimaldate' AND date<='$maximaldate' AND $impfstoffstring $terminartstring AND impfdosen > 0"); $statement->execute(); $count = $statement->rowCount(); if($count == 0){ echo"

Zweitimpfung

Aktuell stehen bei uns keine Termine für die Zweitimpfung zur Verfügung.
Bitte kümmern Sie sich selbstständig, um einen Termin für die Zweitimpfung.
Sobald wir Termine für die Zweitimpfung zur Verfügung haben, finden Sie diese auch auf dieser Webseite.

Sehen Sie von weiteren telefonischen Anfragen ab!


"; }else{ ?>