<?
include_once("./_common.php");
$sql = "update $write_table set state=REPLACE(state,'등록','삭제') where wr_id = '$row[wr_id]'";
sql_query($sql);
alert('변경완료 ');
?>
이케했는데요
체크된 게시물만 update시키려니깐안되요 ㅠ
where절을 빼니깐 다~삭제로바뀌고;;
wr_id='$wr_id'해도안되요ㅠ
include_once("./_common.php");
$sql = "update $write_table set state=REPLACE(state,'등록','삭제') where wr_id = '$row[wr_id]'";
sql_query($sql);
alert('변경완료 ');
?>
이케했는데요
체크된 게시물만 update시키려니깐안되요 ㅠ
where절을 빼니깐 다~삭제로바뀌고;;
wr_id='$wr_id'해도안되요ㅠ
댓글 5개
<?
include_once("./_common.php");
$count_write = 0;
$count_comment = 0;
$tmp_array = array();
if ($wr_id) // 건별삭제
$tmp_array[0] = $wr_id;
else // 일괄삭제
$tmp_array = $_POST[chk_wr_id];
for ($i=count($tmp_array)-1; $i>=0; $i--)
{
$sql = "update $write_table set state='삭제' where wr_id = '{$tmp_array[$i]}'";
sql_query($sql);
}
?>
이케했어요!ㅎㅎ
include_once("./_common.php");
$count_write = 0;
$count_comment = 0;
$tmp_array = array();
if ($wr_id) // 건별삭제
$tmp_array[0] = $wr_id;
else // 일괄삭제
$tmp_array = $_POST[chk_wr_id];
for ($i=count($tmp_array)-1; $i>=0; $i--)
{
$sql = "update $write_table set state='삭제' where wr_id = '{$tmp_array[$i]}'";
sql_query($sql);
}
?>
이케했어요!ㅎㅎ
게시글 목록
| 번호 | 제목 |
|---|---|
| 284172 | |
| 284170 | |
| 284167 | |
| 284164 | |
| 284161 | |
| 284159 | |
| 284155 | |
| 284152 | |
| 284151 | |
| 284148 | |
| 284142 | |
| 284141 | |
| 284137 | |
| 284136 | |
| 284135 | |
| 284127 | |
| 284121 | |
| 284120 | |
| 284116 | |
| 284115 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기