테스트 사이트 - 개발 중인 베타 버전입니다

베스트 게시판 이동 채택완료

죽음의데스 10년 전 조회 3,843

안녕하세요
추천수가 일정 조건을 넘으면 베스트 게시물로 자동으로 이동하려고 하는데요
good.php 에 아래 코드를 추가해서 추천수 >= '1' 이면 test 게시판으로 글이 이동되고
원본 글은 삭제되게하려고 했는데
 
추천수 '1'이 되면 원본글은 삭제가 되는데, test 게시판으로 글이 안넘어옵니다.
삭제만 되고 이동이 안되는데 어디가 문제일까요?
 

</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">$move_bo_table = "test"; // 테이블 이름 저장</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">        </span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">// 해당 게시물 현재 추천수 조회 쿼리</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">$row = sql_fetch("select wr_good from {$g5[write_prefix]}{$bo_table} where wr_id = '$wr_id'",FALSE);</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"> </span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">// 추천수가 1 이상 && good (조건과 비교)</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">if ($row[wr_good] >= 1 && $good == "good")</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">{</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">// board_good 테이블, 추천 내역 생성</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">sql_query(" insert {$g5[board_good_table]} set bo_table = '$bo_table', wr_id = '$wr_id', mb_id = '$member[mb_id]', bg_flag = '$good', bg_datetime = '$g5[time_ymdhis]' ");</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">            </span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">    $sw = "move";        // 이동이 아니라 복사일 경우는 copy</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">    $act = "이동";        // 이동이 아니라 복사일 경우는 복사</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">    $wr_id_list = $wr_id;</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"> </span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">    $save = array();</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">    $save_count_write = 0;</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">    $save_count_comment = 0;</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">    $cnt = 0;</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"> </span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">    $src_dir = G5_DATA_PATH.'/file/'.$bo_table; // 원본 디렉토리</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">    $dst_dir = G5_DATA_PATH.'/file/'.$move_bo_table; // 복사본 디렉토리</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"> </span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"> </span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">     $count_write = 0;</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">     $count_comment = 0;</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"> </span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">    // 해당 게시물 번호 조회</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">     $sql4 = "select wr_num from $write_table where wr_id = '$wr_id'";</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">     $result4 = sql_fetch($sql4);</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">     $wr_num = $result4[wr_num];</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"> </span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">    // 해당 게시물 조회 - 본문, 코멘트, 답글까지</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">    $sql2 = " select * from $write_table where wr_num = $wr_num order by wr_parent, wr_comment desc, wr_id ";</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">    $result2 = sql_query($sql2);</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">            </span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">    // 이동할 게시판에 게시물 순번 설정</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">    $next_wr_num = get_next_num($move_write_table);</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">    </span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">    // 게시물 본문과 코멘트, 답글이 다 이동할때까지</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">        while ($row2 = sql_fetch_array($result2)) </span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">        {</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"> </span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">       // 본문 글에 이동 되었다는 메세지 추가</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">       if (!$row2[wr_is_comment] && $config[cf_use_copy_log]) </span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">       $row2[wr_content] .= " \n[이 게시물은 추천수 $goodCnt 이상으로, {$board[bo_subject]} 게시판에서 $move_bo_table 게시판으로 " . ($sw == 'copy' ? '복사' : '이동') ." 되었습니다]";</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">            </span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">            // 이동되는 게시판에 추가</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">            $sql = " insert into $move_write_table</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                        set wr_num = '$next_wr_num',</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                             wr_reply = '{$row2['wr_reply']}',</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                             wr_is_comment = '{$row2['wr_is_comment']}',</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                             wr_comment = '{$row2['wr_comment']}',</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                             wr_comment_reply = '{$row2['wr_comment_reply']}',</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                             ca_name = '".addslashes($row2['ca_name'])."',</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                             wr_option = '{$row2['wr_option']}',</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                             wr_subject = '".addslashes($row2['wr_subject'])."',</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                             wr_content = '".addslashes($row2['wr_content'])."',</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                             wr_link1 = '".addslashes($row2['wr_link1'])."',</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                             wr_link2 = '".addslashes($row2['wr_link2'])."',</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                             wr_link1_hit = '{$row2['wr_link1_hit']}',</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                             wr_link2_hit = '{$row2['wr_link2_hit']}',</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                             wr_hit = '{$row2['wr_hit']}',</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                             wr_good = '{$wr_good}',</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                             wr_nogood = '{$wr_nogood}',</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                             mb_id = '{$row2['mb_id']}',</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                             wr_password = '{$row2['wr_password']}',</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                             wr_name = '".addslashes($row2['wr_name'])."',</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                             wr_email = '".addslashes($row2['wr_email'])."',</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                             wr_homepage = '".addslashes($row2['wr_homepage'])."',</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                             wr_datetime = '{$row2['wr_datetime']}',</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                             wr_file = '{$row2['wr_file']}',</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                             wr_last = '{$row2['wr_last']}',</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                             wr_ip = '{$row2['wr_ip']}',</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                             wr_1 = '".addslashes($row2['wr_1'])."',</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                             wr_2 = '".addslashes($row2['wr_2'])."',</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                             wr_3 = '".addslashes($row2['wr_3'])."',</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                             wr_4 = '".addslashes($row2['wr_4'])."',</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                             wr_5 = '".addslashes($row2['wr_5'])."',</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                             wr_6 = '".addslashes($row2['wr_6'])."',</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                             wr_7 = '".addslashes($row2['wr_7'])."',</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                             wr_8 = '".addslashes($row2['wr_8'])."',</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                             wr_9 = '".addslashes($row2['wr_9'])."',</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                             wr_10 = '".addslashes($row2['wr_10'])."' ";</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">            sql_query($sql);</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"> </span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">            $insert_id = sql_insert_id();</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"> </span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">            // 코멘트가 아니라면</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">            if (!$row2['wr_is_comment'])</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">            {</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                $save_parent = $insert_id;</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"> </span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">$sql3 = " select * from {$g5['board_file_table']} where bo_table = '$bo_table' and wr_id = '{$row2['wr_id']}' order by bf_no ";</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                $result3 = sql_query($sql3);</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                for ($k=0; $row3 = sql_fetch_array($result3); $k++)</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                {</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                    if ($row3['bf_file'])</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                    {</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                        // 원본파일을 복사하고 퍼미션을 변경</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                        @copy($src_dir.'/'.$row3['bf_file'], $dst_dir.'/'.$row3['bf_file']);</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                        @chmod($dst_dir/$row3['bf_file'], G5_FILE_PERMISSION);</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                    }</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"> </span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                    $sql = " insert into {$g5['board_file_table']}</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                                set bo_table = '$move_bo_table',</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                                     wr_id = '$insert_id',</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                                     bf_no = '{$row3['bf_no']}',</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                                     bf_source = '".addslashes($row3['bf_source'])."',</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                                     bf_file = '{$row3['bf_file']}',</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                                     bf_download = '{$row3['bf_download']}',</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                                     bf_content = '".addslashes($row3['bf_content'])."',</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                                     bf_filesize = '{$row3['bf_filesize']}',</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                                     bf_width = '{$row3['bf_width']}',</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                                     bf_height = '{$row3['bf_height']}',</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                                     bf_type = '{$row3['bf_type']}',</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                                     bf_datetime = '{$row3['bf_datetime']}' ";</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                    sql_query($sql);</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"> </span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                    if ($sw == 'move' && $row3['bf_file'])</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                        $save[$cnt]['bf_file'][$k] = $src_dir.'/'.$row3['bf_file'];</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                }</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"> </span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                $count_write++;</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"> </span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                if ($sw == 'move' && $i == 0)</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                {</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                    // 스크랩 이동</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                    sql_query(" update {$g5['scrap_table']} set bo_table = '$move_bo_table', wr_id = '$save_parent' where bo_table = '$bo_table' and wr_id = '{$row2['wr_id']}' ");</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"> </span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                    // 최신글 이동</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                    sql_query(" update {$g5['board_new_table']} set bo_table = '$move_bo_table', wr_id = '$save_parent', wr_parent = '$save_parent' where bo_table = '$bo_table' and wr_id = '{$row2['wr_id']}' ");</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"> </span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                    // 추천데이터 이동</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                    sql_query(" update {$g5['board_good_table']} set bo_table = '$move_bo_table', wr_id = '$save_parent' where bo_table = '$bo_table' and wr_id = '{$row2['wr_id']}' ");</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                }</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">            }</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">            else </span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">            {</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                $count_comment++;</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"> </span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                if ($sw == 'move')</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                {</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                    // 최신글 이동</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                    sql_query(" update {$g5['board_new_table']} set bo_table = '$move_bo_table', wr_id = '$insert_id', wr_parent = '$save_parent' where bo_table = '$bo_table' and wr_id = '{$row2['wr_id']}' ");</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                }</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">            }</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"> </span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">            sql_query(" update $move_write_table set wr_parent = '$save_parent' where wr_id = '$insert_id' ");</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"> </span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">            if ($sw == 'move')</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">                $save[$cnt]['wr_id'] = $row2['wr_parent'];</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"> </span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">            $cnt++;</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">        }</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"> </span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">        sql_query(" update {$g5['board_table']} set bo_count_write = bo_count_write + '$count_write' where bo_table = '$move_bo_table' ");</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">        sql_query(" update {$g5['board_table']} set bo_count_comment = bo_count_comment + '$count_comment' where bo_table = '$move_bo_table' ");</span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"> </span><br style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);"><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">// '이동' 인경우 원본 게시판의 게시물 삭제</span> </p><p><span style="font-family: monospace; font-size: 13.3333px; line-height: 20px; white-space: nowrap; background-color: rgb(255, 255, 255);">

댓글을 작성하려면 로그인이 필요합니다.

답변 2개

채택된 답변
+20 포인트
진서기
10년 전

추천파일에 넣으면 오류를 볼수 없으니 

 

해당 코드를 따로 빼서 동작하는지 점검후 해보세요

 

쿼리문에 오류가 있다면 에러를 출력하겠죠.

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

9년 전

혹시 이 문제 수정하셨나요? ㅠ

되셨으면 수정 공유 부탁 드립니다 

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인