skyrock adlı üyeden alıntı: mesajı görüntüle
Hocam denedimde saçma sapan bişey oldu.
Bunuda denermisin hocam


<div class="banner-area-two">

<?php
$refsor2=$db->prepare("select * from aktif WHERE id=61");
$refsor2->execute();
while ($refcek2=$refsor2->fetch(PDO::FETCH_ASSOC)) {
if ($refcek2['isActive']==1) {
?>
<div class="row align-items-center">
<?php
$sayfada = 50; // sayfada gösterilecek içerik miktarını belirtiyoruz.
$sorgu=$db->prepare("select * from slides");
$sorgu->execute();
$toplam_icerik=$sorgu->rowCount();
$toplam_sayfa = ceil($toplam_icerik / $sayfada);
// eğer sayfa girilmemişse 1 varsayalım.
$sayfa = isset($_GET['sayfa']) ? (int) $_GET['sayfa'] : 1;
// eğer 1'den küçük bir sayfa sayısı girildiyse 1 yapalım.
if($sayfa < 1) $sayfa = 1;
// toplam sayfa sayımızdan fazla yazılırsa en son sayfayı varsayalım.
if($sayfa > $toplam_sayfa) $sayfa = $toplam_sayfa;
$limit = ($sayfa - 1) * $sayfada;
$refsor=$db->prepare("select * from slides order by rank ASC limit $limit,$sayfada");
$refsor->execute();
while ($refcek=$refsor->fetch(PDO::FETCH_ASSOC)) {
if ($refcek['isActive']==1) {
?>
<div class="col-lg-12">
<div class="banner-content">
<h1><?php echo $refcek['title']; ?></h1>
<?php echo $refcek['description']; ?><br><br>
<?php if ($refcek['allowButton']==1){ ?>
<div class="banner-btn">
<?php if ($refcek['button_caption']!=NULL){ ?>
<a rel="nofollow noreferrer ugc" href="<?php echo $refcek['button_url']; ?>" class="default-btn btn-bg-two border-radius-50"><?php echo $refcek['button_caption']; ?> <i class='bx bx-chevron-right'></i></a>
<?php } ?>
<?php if ($refcek['yenibutonisim']!=NULL){ ?>
<a rel="nofollow noreferrer ugc" href="<?php echo $refcek['yenibutonlink']; ?>" class="default-btn btn-bg-one border-radius-50 ml-20"><?php echo $refcek['yenibutonisim']; ?> <i class='bx bx-chevron-right'></i></a>
<?php } ?>
</div>
<?php } ?>
</div>
<div class="banner-img">
<img src="<?php echo $site; ?>/panel/uploads/slides_v/1920x650/<?php echo $refcek['img_url']; ?>" alt="Images">
<div class="banner-img-shape">
<img src="assets/images/home-three/home-three-shape.png" alt="Images">
</div>
</div>
</div>
<?php
}
}
?>
</div>
<?php
}
}
?>

<?php
$refsor2=$db->