<?php include "header.php";?>
<!--main content start-->
<section class="main-content-wrapper">
<div class="pageheader dark">
<h1>Veri Takibi</h1>
<div class="breadcrumb-wrapper hidden-xs">
<span class="label">Şuan buradasınız:</span>
<ol class="breadcrumb">
<li><a href="index.php">İşlemler Menüsü</a>
</li>
<li>Veri Yönetimi</li>
<li class="active">Veri İşlemleri</li>
</ol>
</div>
</div>
<section id="main-content" class="animated fadeInUp">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Data Tables</h3>
<div class="actions pull-right">
<i class="fa fa-expand"></i>
<i class="fa fa-chevron-down"></i>
<i class="fa fa-times"></i>
</div>
</div>
<?php
if ($_GET['durum']=="ok") {
echo "İşlem başarılı";
} elseif ($_GET['durum']=="no") {
echo "İşlem başarısız";
}
?>
<div class="panel-body">
<table id="example" class="table table-striped table-bordered" cellspacing="0" width="100%">
<thead>
<tr>
<th><center>Kullanıcı Adı</center></th>
<th><center>Şifre</center></th>
<th><center>Ip</center></th>
<th><center>İşlem</center></th>
</tr>
<?php
if(!isset($_REQUEST['siparisler_durum']))$_REQUEST['siparisler_durum']=1;
$siparislersor=$db->prepare("SELECT * from siparisler where kullanici_id = ? AND siparisler_durum='$_REQUEST[siparisler_durum]'");
$siparislersor->execute([$kullanici_id]);
$say=0;
while($siparislercek=$siparislersor->fetch(PDO::FETCH_ASSOC)) { $say++?>
</thead>
<tbody>
<tr>
<td><center> <?php echo $siparislercek['siparisler_web'] ?></center></td>
<td><center> <?php echo $siparislercek['siparisler_adsoyad'] ?></center></td>
<td><center> <?php echo $siparislercek['siparisler_telefon'] ?></center></td>
<td><center><a href="duzenle.php?siparisler_id=<?php echo $siparislercek['siparisler_id'] ?>">
<button class="btn btn-info col-md-12">Düzenle</button>
</a></center></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</section>
</section>
<!--main content end-->
</section>
<script>
$(document).ready(function() {
$('#example').dataTable();
});
</script>
<?php include "footer.php";?> Sayfalama Hatası Yardım
12
●352
- 28-08-2019, 23:31:01Arkadaşlar merhaba, herşey güzel ama datatable kullanıyorum sayfalamada hata aldım. Nerede yanlış yapıyorum yardımcı olabilir misiniz? Kodları aşağıya bırakıyorum..
- 29-08-2019, 13:48:56hocam while döngüsünde burası olmalı tbody ve thead kısmı bi kere gilmeli

- 29-08-2019, 13:54:49hocam sana zahmet olacak ama yukarıdaki kodları kopyalarak yapıstırabılır mısın while gelecek yeri, kafam karıstı oyleebubekirtrkr adlı üyeden alıntı: mesajı görüntüle
