burası islem.php dosyam
if (isset($_POST['toplusil'])) {
$siparisler_id=$_POST['siparisler_id'];
$kaydet=$db->prepare("UPDATE siparisler set
siparisler_id=:siparisler_id,
siparisler_durum=3
");
$insert=$kaydet->execute(array(
'siparisler_id' => $_POST['siparisler_id'],
));
if ($insert) {
//echo "kayıt başarılı";
Header("Location:veriler.php?durum=1=ok");
exit;
} else {
//echo "kayıt başarısız";
Header("Location:veriler.php?durumno&siparisler_id=$siparisler_id");
exit;
}
}burasıda checkbox alanım<form action="islem.php" method="post">
<table id="example" class="table table-striped table-bordered" cellspacing="0" width="100%">
<thead>
<tr>
<th><center>Seç</center></th>
<th><center>ID</center></th>
<th><center>Kullanıcı Adı</center></th>
<th><center>Şifre</center></th>
<th><center>Ip</center></th>
<th><center>Ülke</center></th>
<th><center>İşlem</center></th>
</tr>
</thead>
<tbody>
<?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;
?>
<?php while($siparislercek=$siparislersor->fetch(PDO::FETCH_ASSOC)) { $say++?>
<tr>
<td><center><input type="checkbox" name="siparisler_id[]" value="<?php echo $siparislercek['siparisler_id'] ?>"></center></td>
<td><center> <?php echo $siparislercek['siparisler_id'] ?></center></td>
<td><center> <?php echo $siparislercek['siparisler_adsoyad'] ?></center></td>
<td><center> <?php echo $siparislercek['siparisler_telefon'] ?></center></td>
<td><center> <?php echo $siparislercek['siparisler_ip'] ?></center></td>
<td><center> <?php echo $ulke ?></center></td>
<td><center>
<div class="btn-group">
<button type="button" class="btn btn-info">İşlemler</button>
<button type="button" class="btn btn-danger dropdown-toggle" data-toggle="dropdown">
<span class="caret"></span>
<span class="sr-only">Toggle Dropdown</span>
</button>
<ul class="dropdown-menu" role="menu">
<li><a href="duzenle.php?siparisler_id=<?php echo $siparislercek['siparisler_id'] ?>">İşleme Al</a>
</li>
<li><a href="islem.php?siparisler_id=<?php echo $siparislercek['siparisler_id'] ?>&siparisler_durum=<?php echo $siparislercek['siparisler_durum'] ?>&siparislersil=ok">Sil</a>
</li>
</ul>
</div></center>
</td>
</tr>
<?php } ?>
</tbody>
</table>
<button type="submit" name="toplusil" class="btn btn-danger">Seçilenleri Sil</button>
</form>