게시글 수정 안됨

게시글 수정 안됨

QA

게시글 수정 안됨

본문

게시판 파일을 복사하여 영문 사이트를 제작하였습니다.

영문 페이지에서 게시글 내용을 수정하려하는데 글 수정 된 내용이 업데이트 되어지지 않아서요..

 

한글 페이지에서는 수정되어지는데 영문 페이지에서는 수정안되는 문제를 해결하고싶습니다. 

 

아래 코드는 영문 페이지 write.skin.php의 코드입니다..  어디가 문제인지 모르겠어서 상단 코드만 복사하여 올려봅니다.. ㅠㅠ 

 


<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0);
if (isset($_GET['wr_id'])){
    $wr_id = $_GET['wr_id'];
}
if ($w == "u"){
    $detail_sql = "SELECT * FROM item_detail WHERE detail_wr_num = '$write[wr_num]' AND detail_bo_table = '$bo_table'";
    $detail_row = sql_fetch($detail_sql);
}
?>
<!--sub_header---------------------------------------------------------------->

이 질문에 댓글 쓰기 :

답변 1

안녕하세요.

아래의 코드로 디버그를 하면 어떤 에러가 나오실까요~

 

<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가

// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0);

if (isset($_GET['wr_id'])){
    $wr_id = $_GET['wr_id'];
    echo "wr_id: " . $wr_id . "<br>"; // 디버그 메시지 추가
}

if ($w == "u"){
    $detail_sql = "SELECT * FROM item_detail WHERE detail_wr_num = '$write[wr_num]' AND detail_bo_table = '$bo_table'";
    echo "SQL: " . $detail_sql . "<br>"; // 디버그 메시지 추가
    
    $detail_row = sql_fetch($detail_sql);
    var_dump($detail_row); // 디버그 메시지 추가
}
?>
 

wr_id: 2
SQL: SELECT * FROM item_detail WHERE detail_wr_num = '-2' AND detail_bo_table = 'inner_t_en'
array(23) { ["idx"]=> string(3) "258" ["detail_bo_table"]=> string(10) "inner_t_en" ["detail_title_0"]=> string(0) "" ["detail_content_0"]=> string(0) "" ["detail_title_1"]=> string(0) "" ["detail_content_1"]=> string(0) "" ["detail_title_2"]=> string(0) "" ["detail_content_2"]=> string(0) "" ["detail_title_3"]=> string(0) "" ["detail_content_3"]=> string(0) "" ["detail_title_4"]=> string(0) "" ["detail_content_4"]=> string(0) "" ["detail_title_5"]=> string(0) "" ["detail_content_5"]=> string(0) "" ["detail_title_6"]=> string(0) "" ["detail_content_6"]=> string(0) "" ["detail_title_7"]=> string(0) "" ["detail_content_7"]=> string(0) "" ["detail_title_8"]=> string(0) "" ["detail_content_8"]=> string(0) "" ["detail_title_9"]=> string(0) "" ["detail_content_9"]=> string(0) "" ["detail_wr_num"]=> string(2) "-2" }

이렇게 뜹니다..!

답변을 작성하시기 전에 로그인 해주세요.
전체 4
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT