골

제발 도와주세요

view.skin.php파일에
<? if ($is_admin) { echo "<a href=\"javascript:win_open('$board_skin_path/field_update.php?bo_table=$bo_table&wr_id=$wr_id', 'FIELDUP', target='hiddenframe');\"><img src=$board_skin_path/img/icon_on.gif border='0'></a> "; } ?>
<? if ($is_admin) { echo "<a href=\"javascript:win_open('$board_skin_path/field_update1.php?bo_table=$bo_table&wr_id=$wr_id', 'FIELDUP', target='hiddenframe');\"><img src=$board_skin_path/img/icon_off.gif border='0'></a> "; } ?>

이렇게 버튼을 만들었고

field_update.php에는

<?php
$g4_path = "../../..";
include_once("$g4_path/common.php");

$sql = " update $write_table
set wr_10 = 'on'
where wr_id = '$wr_id' ";

$row2 = sql_fetch(" select mb_id from {$g4[write_prefix]}{$bo_table} where wr_id = '$wr_id' ");
sql_query(" insert into $g4[point_table] (po_point,mb_id,po_content,po_datetime,po_rel_table,po_rel_id,po_rel_action) values ('10','$row2[mb_id]','추천','$g4[time_ymdhis]','$bo_table','$wr_id','추천') ");
//insert_point($write['mb_id'], 1, "{$bo_table} - {$wr_id} 완료", $bo_table, $wr_id, $member['mb_id']);
sql_query($sql);

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>
";
?>
이런식으로 했는데요.
아이콘을 클릭하면
wr_10필드에 on이 입력이되는동시에 클릭자에게 포인트를 적립을 하고 싶어요.
위 방법대로 하는것이 정상인지요..

좀 봐주세요
댓글을 작성하시려면 로그인이 필요합니다.

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
10-03-16 조회 953
10-03-16 조회 1,006
10-03-16 조회 1,244
10-03-16 조회 1,040
10-03-16 조회 1,106
10-03-16 조회 951
10-03-16 조회 1,647
10-03-16 조회 2,331
10-03-16 조회 2,607
10-03-16 조회 1,004
10-03-16 조회 1,687
10-03-16 조회 1,112
10-03-16 조회 1,982
10-03-16 조회 1,302
10-03-16 조회 1,037
10-03-16 조회 965
10-03-16 조회 1,651
10-03-16 조회 1,307
10-03-15 조회 1,916
10-03-15 조회 1,025