Mini Shell
<div class="content-body">
<div class="container-fluid">
<?php
if(isset($_POST['sil'])){
$sil=$_POST['toplu_sil'];
$sill = implode(",",$sil);
foreach($sil as $s){
$resim_sorgu1=$db->query("select * from iletisimler where id='$s'")->fetch(PDO::FETCH_ASSOC);
unlink('../../resimler/'.$resim_sorgu1['resim']);
$simdii=$db->query("delete from iletisimler where id='$s'")->fetch(PDO::FETCH_ASSOC);
}
}
?>
<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-header">
<h4 class="card-title">İletişimden Gelenler</h4>
</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-responsive-md">
<thead>
<tr>
<th style="width:50px;">
<div class="form-check custom-checkbox checkbox-success check-lg me-3">
<input type="checkbox" class="form-check-input" id="checkAll" required="">
<label class="form-check-label" for="checkAll"></label>
</div>
</th>
<th>Id</th>
<th>Ad Soyad</th>
<th>Konu</th>
<th>Telefon</th>
<th>Email</th>
<th>Mesaj</th>
<th>Tarih</th>
</tr>
</thead>
<tbody>
<?php
$cek = $db->query("select * from iletisimler order by id desc")->fetchAll(PDO::FETCH_ASSOC);
foreach($cek as $goster){
?>
<tr>
<td>
<input type="checkbox" class="form-check-input" name="toplu_sil[]" value="<?=$goster["id"]?>">
<label class="form-check-label" for="customCheckBox2"></label>
</td>
<td><?=$goster["id"]?></td>
<td><?=$goster["adsoyad"]?></td>
<td><?=$goster["konu"]?></td>
<td><?=$goster["telefon"]?></td>
<td><?=$goster["email"]?></td>
<td><?=$goster["mesaj"]?></td>
<td><?=$goster["tarih"]?></td>
</tr>
<?php }?>
</tbody>
</table>
</div>
</div>
</div>
</div></form>
</div>