이 커리문좀 봐주세요 정보
이 커리문좀 봐주세요본문
오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.
오류 주소 :
어떤 버튼을 클릭을 했을때 클릭한사람의 닉네임이 테이블에 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' ";
위 구분으로 처리 하려고하니 안되네요
어떻게 해야하나요?
댓글 전체
mysql_query(" update $write_table
set wr_20 = '$name'
where wr_id = 'wr_id' ");
이렇게 해보시지요.
set wr_20 = '$name'
where wr_id = 'wr_id' ");
이렇게 해보시지요.
그냥 up.php파일에
<?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>
";
?>
이렇게만 넣어도되나요?
<?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' ";
$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' ";
감사합니다.