move.update.php 파일에서 $write_table 변수 질문 드립니다 ㅠ
본문
move.php 화면에서 수정을 하면? 넘어가는 페이지인
move.update.php 파일에서요
다른 파일들 ($bo_table , $wr_id_list 등) 은 $_POST 로
move.php 파일에서 넘어오는걸 확인 했는데요
$write_table 테이블 변수는 어디서 넘어온걸까요??
26번째 줄에 언급이 되는데 넘어온 값도 없고 생성된 변수도 없고.......
G5_write_게시판명 이라는걸 언급 하는건 알겠고
$bo_table 테이블 변수로 만들수도 있겠지만
파일 분석하는데 어디서 넘어온건지
당췌 알수가 없어서 질문 드립니다..... ㅠㅠ
답변 1
common.php
394 라인부터
$write = array();
$write_table = "";
if ($bo_table) {
$board = sql_fetch(" select * from {$g5['board_table']} where bo_table = '$bo_table' ");
if ($board['bo_table']) {
set_cookie("ck_bo_table", $board['bo_table'], 86400 * 1);
$gr_id = $board['gr_id'];
$write_table = $g5['write_prefix'] . $bo_table; // 게시판 테이블 전체이름
//$comment_table = $g5['write_prefix'] . $bo_table . $g5['comment_suffix']; // 코멘트 테이블 전체이름
if (isset($wr_id) && $wr_id)
$write = sql_fetch(" select * from $write_table where wr_id = '$wr_id' ");
}
}
이런식으로 선언되네요..