<?
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);
}
?>
이케했어요!ㅎㅎ
게시글 목록
| 번호 | 제목 |
|---|---|
| 284348 | |
| 284336 | |
| 284333 | |
| 284332 | |
| 284320 | |
| 284318 | |
| 284316 | |
| 284313 | |
| 284307 | |
| 284306 | |
| 284303 | |
| 284298 | |
| 284296 | |
| 284290 | |
| 284286 | |
| 284280 | |
| 284277 | |
| 284272 | |
| 284261 | |
| 284259 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기