DB 업데이트 질문
본문
테이블이 업데이트가 되지 않아 질문드립니다.
post값은
Array
(
[token] => b5ea8ad54c7a63dd09b4294121ecb987
[chkall] => 1
[mb_id] => Array
(
[0] => admin
)
[po_id] => Array
(
[0] => 13
)
[chk] => Array
(
[0] => 0
)
)
이렇게 넘어오구요
for ($i=0; $i<$count; $i++)
{
// 실제 번호를 넘김
$k = $_POST['chk'][$i];
$po_id = (int) $_POST['po_id'][$k];
$str_mb_id = sql_real_escape_string($_POST['mb_id'][$k]);
$sql = " update {$g5['point_table']}
set po_w = '1'
where mb_id = '{$str_mb_id}'
and po_id > '{$po_id}' ";
sql_query($sql);
}
이렇게 코드가 있는데 잘못된게 있나요?
!-->
답변을 작성하시기 전에 로그인 해주세요.