제발 도와주세요

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 질문답변

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

+
제목 글쓴이 날짜 조회
15년 전 조회 751
15년 전 조회 839
15년 전 조회 878
15년 전 조회 1,983
15년 전 조회 826
15년 전 조회 887
15년 전 조회 1,111
15년 전 조회 912
15년 전 조회 976
15년 전 조회 820
15년 전 조회 1,518
15년 전 조회 2,205
15년 전 조회 2,482
15년 전 조회 884
15년 전 조회 1,564
15년 전 조회 992
15년 전 조회 1,861
15년 전 조회 1,178
15년 전 조회 893
15년 전 조회 848
🐛 버그신고