kullandığım kodlar
<td><center><a href="../netting/islem.php?yayin_id=<?php echo $menucek['yayin_id']; ?>&yayinsil=ok"><button class="btn btn-danger btn-xs">Sil</button></a></center></td>
if ($_GET['yayinsil']=="ok") {
$sil=$db->prepare("DELETE from yayinlar where yayin_id=:id");
$kontrol=$sil->execute(array(
'id' => $_GET['yayin_id']
));
if ($kontrol) {
header("location:../production/yayinlar.php?sil=ok");
} else {
header("location:../production/yayinlar.php?sil=no");
}
} if ($_GET['yayinsil']=="ok") {?>
<b style="color:green;">İşlem Başarılı...</b>
<?php } elseif ($_GET['durum']=="no") {?>
<b style="color:red;">İşlem Başarısız...</b>
<?php }
?>