gbupdatecomment.php 의 $sql insert 부분을
$sql = " insert into $table
set bd_altkey = '$bd_altkey',
bd_notice = '$bd[bd_notice]',
bd_num = '$bd[bd_num]',
bd_comment = '$bd_comment',
bd_content = '$comment_content',
mb_id = '$mb_id',
bd_passwd = '$mb_passwd',
bd_name = '$mb_name',
bd_email = '$mb_email',
bd_datetime = NOW(),
bd_ip = '$HTTP_SERVER_VARS[REMOTE_ADDR]',
bd_user_agent = '$HTTP_SERVER_VARS[USER_AGENT]' ";
sql_query_error($sql);
위의 코드로 변경해 주십시오.
$sql = " insert into $table
set bd_altkey = '$bd_altkey',
bd_notice = '$bd[bd_notice]',
bd_num = '$bd[bd_num]',
bd_comment = '$bd_comment',
bd_content = '$comment_content',
mb_id = '$mb_id',
bd_passwd = '$mb_passwd',
bd_name = '$mb_name',
bd_email = '$mb_email',
bd_datetime = NOW(),
bd_ip = '$HTTP_SERVER_VARS[REMOTE_ADDR]',
bd_user_agent = '$HTTP_SERVER_VARS[USER_AGENT]' ";
sql_query_error($sql);
위의 코드로 변경해 주십시오.
첨부파일
|
댓글을 작성하시려면 로그인이 필요합니다.
로그인
댓글 1개