이 커리문좀 봐주세요
오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.
오류 주소 :
어떤 버튼을 클릭을 했을때 클릭한사람의 닉네임이 테이블에 update되게 하고져 합니다.
$sql = " update $write_table
set wr_20 = '$name'
where wr_id = 'wr_id' ";
위 구분으로 처리 하려고하니 안되네요
어떻게 해야하나요?
오류 주소 :
어떤 버튼을 클릭을 했을때 클릭한사람의 닉네임이 테이블에 update되게 하고져 합니다.
$sql = " update $write_table
set wr_20 = '$name'
where wr_id = 'wr_id' ";
위 구분으로 처리 하려고하니 안되네요
어떻게 해야하나요?
|
댓글을 작성하시려면 로그인이 필요합니다.
댓글 4개
set wr_20 = '$name'
where wr_id = 'wr_id' ");
이렇게 해보시지요.
<?php
$g4_path = "../../..";
include_once("$g4_path/common.php");
mysql_query(" update $write_table
set wr_20 = '$name'
where wr_id = 'wr_id' ");
echo"
<script type='text/javascript'>
//parent.opener.location.href = '$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id=$wr_id';
parent.opener.location.reload();
window.close();
</script>
";
?>
이렇게만 넣어도되나요?
$sql = " update $write_table
set wr_20 = '$name'
where wr_id = 'wr_id' ";
wr_id 필드는 인트형일건대
검색은 wr_id 텍스트 형으로하셧내요
아래처럼하셔야될것같내요
$sql = " update $write_table
set wr_20 = '$name'
where wr_id = '$wr_id' ";