MST1430.php 954 Bytes
<?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");
?>