}
    public static function Vrijeme()
    {
        $baza = new Baza();
        $upit = "select korisnicko_ime from korisnik where tip_korisnika=3 order by korisnicko_ime;";
        $rezultat = $baza->selectDB($upit);
        $polje = array();
        while ($red = $rezultat->fetch_assoc()) {
            $polje[] = $red[korisnicko_ime];
        }
        $reg_json = json_encode($polje);
        echo $reg_json;
        return $reg_json;
    }
}
$instanca = new json();
foreach ($_POST as $key => $value) {
    if ($key == "korisnik") {
        $instanca->Korisnik($value);
    } elseif ($key == "email") {
        $instanca->Email($value);
    } elseif ($key == "park") {
        $instanca->Parking();
    } elseif ($key == "reg") {
        $instanca->RegOznake($value);
    } elseif ($key == "bud_zap") {
        $instanca->BuduciZaposlenik();
    } elseif ($key == "cijena") {
        $instanca->Cijene();
    }
}