포인트 관리자 승인추가 채택완료
<a href="index.php?allow=ok&mb_id=<?=$rows[mb_id]?>&price=<?=$rows[app_price]?>&datetime=<?=$rows[app_datetime]?>">확인</a>
확인버튼과
$sql = " insert into $g4[application_table]
set mb_id = '$_POST[mb_id]',
app_bank = '$_POST[app_bank]',
app_name = '$_POST[app_name]',
app_price = '$_POST[app_price]',
app_account = '$_POST[app_account]' ,
app_status = '대기',
app_datetime = '$g4[time_ymdhis]'
";
sql_query($sql);
insert_point($_POST[mb_id], -$_POST[app_price], "포인트 출금 신청 [ $_POST[app_price]원 ]");
}
goto_url("index.php");
}
?>
포인트추가 입니다
insert_point부분을
if($is_admin == 'allow') {
insert_point($_POST[mb_id], -$_POST[app_price], "포인트 출금 신청 [ $_POST[app_price]원 ]");
}
이런식으로 하니 insert 부분이 작동을안하네요
어떻게해야되나요
답변 1개
보니까 링크 경로방식및 변수 처리 방식이 $_POST가 아니라 $_GET으로 처리하셔야 할듯 보여집니다.
답변에 대한 댓글 2개
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인
포인트 감소는 되는데
IF문으로 관리자가 OK버튼을 누르면
충전이되도록 하고싶은데 어떻게 방법이없을까요.???