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

게시글 수정 안됨 채택완료

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

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

 

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

 

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

 

</strong></p>

<p><strong><?php

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

<p><strong>// 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----------------------------------------------------------------></strong></p>

<p><strong>

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

답변 1개

채택된 답변
+20 포인트

안녕하세요.

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

 

// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨 add_stylesheet('', 0);

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

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 . " "; // 디버그 메시지 추가          $detail_row = sql_fetch($detail_sql);     var_dump($detail_row); // 디버그 메시지 추가 } ?>  

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

답변에 대한 댓글 1개

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" }

이렇게 뜹니다..!

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

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

로그인

전체 질문 목록

🐛 버그신고