MST1430.php
954 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?PHP
//*****************************************************************************
//*
//* プログラム名:め〜るNiポン!V2
//* プログラムID:MST1422.php
//* 機能 :回答文言を削除する(論理削除)
//*
//*****************************************************************************
header("Content-type: text/html; charset=EUC-JP");
//***************************
//* インクルードファイル
//***************************
include('./include/smarty.conf');
include("./include/session_start.inc");
include("./include/SessionChk2.inc");
include("./include/jcode.phps");
//***************************
//* 内部変数
//***************************
include("./include/dbcon.inc");
$num = count($del_flg);
for($i = 0; $i < $num; $i++){
$sql = "UPDATE mst_answer SET del_flg = 1 ";
$sql .= "WHERE pattern_id = $del_flg[$i]";
$rtn = pg_exec($sql);
if($rtn==false){
echo("SQL実行に失敗しました(UPDATE)");
exit;
}
}
header("Location:MST1410.php");
?>