Размер файла: 747B
<?
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 `comments` where `id`=".$_GET['id']." ");
if($del==true){
echo'<script> alert("Успешно удалено!")</script>
<meta http-equiv="Refresh" content="1; URL=comment.php">';}
else { echo '<script> alert("Не удалено!")</script>
<meta http-equiv="Refresh" content="1; URL=comment.php">
';}
?>
</div> </div> </div> </div>