<?php

$query = $db->prepare("SELECT * FROM blog where sef=:sef LIMIT 1");
$icsayfa = $query->execute(array(":sef"=>$_GET['sef']));
$icsayfa = $query->fetch(PDO::FETCH_ASSOC);

if(!$icsayfa){
  echo '<meta http-equiv="refresh" content="0;URL=index.php">';
}


$_title         =  $icsayfa['baslik'];
$_description   =  $icsayfa['description'];


?>
<div class="container-fluid adres_cubugu">
  <div class="row">
  	<div class="container">
  		<div class="row">
  			<div class="col-md-12">
  				<ul>
  					<li><a href="index.php"><i class="fa fa-home"></i> Anasayfa</a> <span><i class="fa fa-arrow-right"></i></span></li>
  					<li><a href="blog/<?php echo $icsayfa['sef']; ?>"><?php echo $icsayfa['baslik']; ?></a></li>
  				</ul>
  			</div>
  		</div>
  	</div>
  </div>
</div>

<section class="bg-dis">
	<div class="container">

        <div class="row mt-15">
          <div class="col-md-12">
            <div class="alan">
              <img src="upload/<?php echo $icsayfa['img']; ?>" alt="<?php echo $icsayfa['baslik']; ?>"  class="img-responsive" style="border:1px solid #ddd;padding: 5px">
              <?php echo $icsayfa['aciklama']; ?>
            </div>
          </div>
        </div>

  </div>
</section>
