Location: PHPKode > projects > MythPHP > MythPHPv1.0/www/admin/duyurusilindi.php
<?php include 'header.php'; ?>
<div align="center">
<?php

include '../ayar.php';

$didal = $_GET['did']+0;

if(empty($didal))
{
echo '<img src="img/cancel.png" id="hata" alt="hata" width="16" height="16" /> <b>Kritik Hata:</b> ID Bilgisi Alýnamýyor!<br />';
}

$didaldb = mysql_real_escape_string($didal);

$sql = "DELETE FROM `$dbadi`.`duyurular` WHERE `duyurular`.`id` = $didaldb;";

if(mysql_query($sql)){
echo '<img src="img/meklendi.png" id="eklendi" alt="eklendi" width="48" height="48" /><br /> <h2>Duyuru Baþarýyla Silindi.</h2> <br />';
}else{
echo '<img src="img/meklenemedi.png" id="eklendi" alt="eklendi" width="48" height="48" /><br /> <h2>Duyuru Silinemedi.</h2> <br />';
echo mysql_error();
}
?>
</div>		
<?php include 'footer.php'; ?>
Return current item: MythPHP