baglan.php dosyamın içeriği :

<?php
$host="localhost";
$veritabani_ismi="hphp";
$k_adi="h_php";
$sifre="Grq*1@}tp$";

try {
$db = new PDO("mysql:host=$host; dbname=$veritabani_ismi; charset=utf8", $k_adi, $sifre);
} catch (PDOException $e) {
echo $e->getmessage();
}

?>
ayarlar.php dosyamın içeriği :

<?php include 'header.php';

$sorgu=$db->prepare("SELECT * FROM ayarlar");
$sorgu->execute();
$ayar=$sorgu->fetch(PDO::FETCH_ASSOC);

?>
Ancak inputlarda value="<?php $ayar['site_baslik'] ?> böyle girmeme rağmen çekmiyor nerede hata yapıyorum acaba ?