diray67 adlı üyeden alıntı: mesajı görüntüle
oluşan hatayı paylaşın birlikte çözelim hocam
İlginiz için teşekkür ederim hocam fakat biri bağlanıp yardımcı olsa aslında daha güzel olabilir. Baya araştırdım bir tek bu sorunu çözemedim.



diray67 adlı üyeden alıntı: mesajı görüntüle
oluşan hatayı paylaşın birlikte çözelim hocam
index.php sayfam
<?
function seflink($text)
{
$find = array('Ç', 'Ş', 'Ğ', 'Ü', 'İ', 'Ö', 'ç', 'ş', 'ğ', 'ü', 'ö', 'ı', '+', '#');
$replace = array('c', 's', 'g', 'u', 'i', 'o', 'c', 's', 'g', 'u', 'o', 'i', 'plus', 'sharp');
$text = strtolower(str_replace($find, $replace, $text));
$text = preg_replace("@[^A-Za-z0-9-_.+]@i", ' ', $text);
$text = trim(preg_replace('/s+/', ' ', $text));
$text = str_replace(' ', '-', $text);
return $text;
}
?>
<? include 'peksen/config.php' ?>


<div class="container">

   
           
  <table class="table">
    <thead>
      <tr>
        <th>#</th>
        <th>Yazı Resim</th>
        <th>Yazı Başlık</th>
        <th>Yazı</th>
        <th>Oku</th>

      </tr>
    </thead>
    <tbody>
      <?php foreach($row as $item){ ?>
      <tr>
        <td><a href="yazioku.php/<?php echo $item['id']; ?>/<?php echo seflink($item['yazi_baslik']); ?>"><?php echo $item["id"]; ?></a>
        <td><img height="50" width="50" src="<?php echo $item["yazi_resim"]; ?>"></td>
        <td><?php echo $item["yazi_baslik"]; ?></td>
        <td><?php echo mb_substr($item["yazi_yazi"],0,45,'UTF-8')."..."; ?></td>
        <td><a href="yazioku.php?id=<?php echo $item['id']; ?>"><button class="btn btn-primary">Yazıyı Oku</button></a></td>
       
 </tr>
<?php } ?>
    </tbody>
  </table>
</div>
</body>
</html>
yazioku.php sayfam
<?php require_once ("peksen/config.php"); ?>
<?php
ob_start();
$id = $_GET["id"];
$sorgu = $db->query("SELECT * FROM blog_yazi WHERE id = $id")->fetch(PDO::FETCH_ASSOC);
$al = $sorgu;

?>
<br>
<?php echo $al['yazi_keyw']; ?>
.htaccess sayfam
RewriteEngine on
RewriteRule ^yazi-([0-9a-zA-Z-_]+)-([0-9]+)$  yazioku.php?seflink=$1&id=$2 [L,QSA]

Aldığım hata
Fatal error: Call to a member function fetch() on boolean in C:AppServwwwyazioku.php on line 5

Yönlendirdiği url;
http://localhost/yazioku.php/24/blog...-deneme-makale