📄 delete.php
字号:
<?php
include_once( "inc/auth.php" );
echo "\r\n<html>\r\n<head>\r\n<title></title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n</head>\r\n\r\n<body class=\"bodycolor\" topmargin=\"5\">\r\n\r\n";
$query = "select VOTE_ID from VOTE_TITLE where PARENT_ID=".$VOTE_ID;
$cursor = exequery( $connection, $query );
while ( $ROW = mysql_fetch_array( $cursor ) )
{
$VOTE_ID1 = $ROW['VOTE_ID'];
$query = "select ITEM_ID from VOTE_ITEM where VOTE_ID=".$VOTE_ID1;
$cursor1 = exequery( $connection, $query );
while ( $ROW1 = mysql_fetch_array( $cursor1 ) )
{
$ITEM_ID = $ROW1['ITEM_ID'];
$query = "delete from VOTE_DATA where ITEM_ID=".$ITEM_ID." and FIELD_NAME!='0'";
exequery( $connection, $query );
}
$query = "delete from VOTE_DATA where ITEM_ID=".$VOTE_ID1." and FIELD_NAME='0'";
exequery( $connection, $query );
$query = "delete from VOTE_ITEM where VOTE_ID=".$VOTE_ID1;
exequery( $connection, $query );
}
$query = "delete from VOTE_TITLE where PARENT_ID=".$VOTE_ID;
exequery( $connection, $query );
$query = "delete from VOTE_DATA where ITEM_ID=".$VOTE_ID." and FIELD_NAME='0'";
exequery( $connection, $query );
$query = "delete from VOTE_ITEM where VOTE_ID=".$VOTE_ID;
exequery( $connection, $query );
$query = "delete from VOTE_TITLE where VOTE_ID=".$VOTE_ID;
exequery( $connection, $query );
header( "location: index1.php?SUBJECT=".$SUBJECT."&CONTENT={$CONTENT}&TYPE={$TYPE}&VIEW_PRIV={$VIEW_PRIV}&ANONYMITY={$ANONYMITY}&BEGIN_DATE1={$BEGIN_DATE1}&BEGIN_DATE2={$BEGIN_DATE2}&END_DATE1={$END_DATE1}&END_DATE2={$END_DATE2}©_TO_ID={$COPY_TO_ID}&CUR_PAGE={$CUR_PAGE}" );
echo "\r\n</body>\r\n</html>\r\n";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -