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

include 'ayar.php';

$silsip = $_GET['sid']+0;

if(empty($silsip))
{
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($silsip);

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

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