선택삭제 기능 스크립트 수정

This commit is contained in:
chicpro
2013-02-18 11:18:03 +09:00
parent 6ed598e865
commit b98157243f
2 changed files with 18 additions and 16 deletions

View File

@ -21,8 +21,8 @@ $sql = " insert into {$g4['auth_table']}
au_auth = '{$_POST['r']},{$_POST['w']},{$_POST['d']}' ";
$result = sql_query($sql, FALSE);
if (!$result) {
$sql = " update $g4['auth_table']
set au_auth = '{$_POST[r]},{$_POST['w']},{$_POST['d']}'
$sql = " update {$g4['auth_table']}
set au_auth = '{$_POST['r']},{$_POST['w']},{$_POST['d']}'
where mb_id = '{$_POST['mb_id']}'
and au_menu = '{$_POST['au_menu']}' ";
sql_query($sql);