SQL 에러....뭐때문일 까요
본문
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);
이런식으로 했는데 에러를 뿜어내는군요....잘못된곳 지적좀 해주세요..
답변을 작성하시기 전에 로그인 해주세요.