update set mb_2= '30000' where mb_id= 'test'
1064 : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'set mb_2= '30000' where mb_id= 'test'' at line 2
error file : /bbs/write_update3.php
글을 작성하면 30000 이라는 숫자를 mb_2 에 저장하려고 합니다.
$sql = " update $member_table
set mb_2= '$choice_point'
where mb_id= '$mb_id' ";
sql_query($sql);
이런식으로 했는데 에러를 뿜어내는군요....잘못된곳 지적좀 해주세요..
답변 1개 / 댓글 1개
에러를 보면 $member_table 를 못찾았네요...
업데이트할 테이블이 에러문구에선 찾을 수 없어요..
답변에 대한 댓글 1개
답변을 작성하려면 로그인이 필요합니다.