function AdminEkle(Admin $admin)
 {
     try {
         $sorgu = "insert into admin (username, ad, soyad, email, tel, dogumTarihi) values(?,?,?,?,?,?)";
         $admindeger = array($admin->getUsername(), $admin->getAd(), $admin->getSoyad(), $admin->getEmail(), $admin->getTel(), $admin->getDogumTarihi());
         $baglanti = new VeriTabaniBaglanti();
         $conn = $baglanti->pdo_baglanti();
         $ekle = $conn->prepare($sorgu);
         $sonuc = $ekle->execute($admindeger);
         if ($sonuc) {
             $kul = new KullaniciGiris();
             $kuldao = new KullaniciGirisDAO();
             $sifre = $admin->getAd() . $admin->getSoyad();
             $yeniSifre = $kuldao->sifreleme($sifre);
             $kul->setEmail($admin->getEmail());
             $kul->setSifre($yeniSifre);
             $kul->setYetkiId(1);
             echo '<p style="color: green;">Veriler Eklendi</p>';
             echo $kuldao->KullaniciEkle($kul);
         } else {
             echo '<p style="color: red;">Hata Oluştu</p>';
         }
     } catch (PDOException $exc) {
         echo $exc->getTraceAsString();
     }
 }
?>
</head>
<body>
<?php 
$header = new Header();
$header->setDizin('../');
$header->kokSayfa_header();
?>
    <div class = "container">
	<div class="wrapper">
            <?php 
if ($_POST) {
    $kul = new KullaniciGiris();
    $kuldao = new KullaniciGirisDAO();
    $sifre = $kuldao->sifreleme(trim($_POST['sifre1']));
    $kul->setEmail($_SESSION['email']);
    $kul->setSifre($sifre);
    ?>
            <div class="form-signin" style="background-color: pink;">
                <?php 
    $kuldao->sifreGuncelle($kul);
    ?>
            </div>
            <?php 
}
?>
		<form action="" method="post" name="Login_Form" class="form-signin">       
		    <h3 class="form-signin-heading">Şifre Değiştirme</h3>
			  <hr class="colorgraph"><br>
			  
			  <input type="password" id="sif1" class="form-control" name="sifre1" placeholder="Yeni şifreyi giriniz" required="" autofocus="" />
 function DoktorGoster()
 {
     $kulList = array();
     try {
         $baglanti = new VeriTabaniBaglanti();
         $conn = $baglanti->pdo_baglanti();
         $sorgu = $conn->query("Select resim ,email from kullanicigiris where yetki_id=0");
         $rows = $sorgu->fetchAll(PDO::FETCH_CLASS);
         foreach ($rows as $row) {
             $kul = new KullaniciGiris();
             $kul->setEmail($row->email);
             $kul->setResim($row->resim);
             array_push($kulList, $kul);
         }
     } catch (Exception $ex) {
         die($ex->getMessage());
     } finally {
         if ($conn != null) {
             $conn = $baglanti->pdo_sonlandir();
         }
     }
     return $kulList;
 }
	<div class="wrapper">
    <?php 
if ($_POST) {
    if ($_POST['yetki'] == 0) {
        $kulgiris = new KullaniciGiris();
        $kulgirisdao = new KullaniciGirisDAO();
        $sifre = $kulgirisdao->sifreleme(trim($_POST['sifre']));
        $kulgiris->setEmail(trim($_POST['email']));
        //echo $sifre.' '.$_POST['email'];
        $kulgiris->setSifre($sifre);
        $kulgirisdao->LoginKontrol($kulgiris);
    } else {
        $kulgiris = new KullaniciGiris();
        $kulgirisdao = new KullaniciGirisDAO();
        $sifre = $kulgirisdao->sifreleme(trim($_POST['sifre']));
        $kulgiris->setEmail(trim($_POST['email']));
        //echo $sifre.' '.$_POST['email'];
        $kulgiris->setSifre($sifre);
        $kulgirisdao->AdminLoginKontrol($kulgiris);
    }
}
?>
		<form action="" method="post" name="Login_Form" class="form-signin">       
		    <h3 class="form-signin-heading">Giriş Yapınız</h3>
			  <hr class="colorgraph"><br>
			  
			  <input type="text" class="form-control" name="email" placeholder="Eposta Adresi" required="" autofocus="" />
			  <input type="password" class="form-control" name="sifre" placeholder="Şifrenizi Giriniz. " required=""/>  
                          Doktor <input type="radio" name="yetki" value="0"  checked/>
                          &nbsp;&nbsp;&nbsp;Admin <input type="radio" name="yetki" value="1" />
                          <hr class="colorgraph"><br>
<!DOCTYPE html>

<html>
    <head>
    <meta charset="UTF-8">
    <title>Doktor Müşteri</title>
    <?php 
    $bootstrap = new Bootstrap();
    $bootstrap->controller_vb();
    ?>
</head>
<body>
<?php 
    if ($_POST) {
        $header = new Header();
        $header->kokSayfa_header();
        $sifre = $_POST['ad'] . $_POST['soyad'];
        $email = $_POST['email'];
        $kulgirisdao = new KullaniciGirisDAO();
        $yenisifre = $kulgirisdao->sifreleme($sifre);
        $kulgiris = new KullaniciGiris();
        $kulgiris->setEmail($email);
        $kulgiris->setSifre($yenisifre);
        $kulgiris->setYetkiId(0);
        $kulgirisdao->KullaniciEkle($kulgiris);
    }
    ?>
</body>
</html>
<?php 
}