Файл: test.masteram.us/obsuzh_del.php
Строк: 6
<?php
include 'Core.php';
if ($_GET['del'] && mysql_result(mysql_query("SELECT COUNT(*) FROM `obsuzh` WHERE `id` = '".intval($_GET['del'])."'"),0)==1) {
$post=mysql_fetch_assoc(mysql_query("SELECT * FROM `obsuzh` WHERE `id` = '".intval($_GET['del'])."' LIMIT 1"));
mysql_query("DELETE FROM `obsuzh` WHERE `id` = '$post[id]'");
}
if ($_GET['del_all'])
{
$post=$user[id];
mysql_query("DELETE FROM `obsuzh` WHERE `id_kont` = '$post'");
}
header("Location: obsuzh.php".SID);
?>