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

include '../ayar.php';

$silaid = $_GET['aid']+0;

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

$idcekdb = mysql_real_escape_string($silaid);

$sql = "DELETE FROM `$dbadi`.`alanadifiyat` WHERE `alanadifiyat`.`id` = $idcekdb;";

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