Файл: admin/dell_c.php
Строк: 22
<?
include '.../inc/avtoriz.php' ;
include ('.../inc/config.php');
include ('.../inc/connect.php');
?>
<div class="pageContent">
<div id="main"> <div class="container"><div class="left">
<?
$_GET['id'] = mysql_escape_string(trim(htmlspecialchars( $_GET['id'])));
if ( empty($_GET['id']) )
{
exit('
<div align="center" id="cerror"></div>
ID пуст!
</div>');
}
$del= mysql_query("delete from `categ` where `id`=".$_GET['id']." ");
if($del==true){
echo'<script> alert("Успешно удалено!")</script>
<meta http-equiv="Refresh" content="1; URL=categ.php">';}
else { echo '<script> alert("Не удалено!")</script>
<meta http-equiv="Refresh" content="1; URL=categ.php">
';}
?>
</div> </div> </div> </div>