다시 질문드려요 ㅠㅠ 최근게시물 오류 > 그누4 질문답변

그누4 질문답변

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

다시 질문드려요 ㅠㅠ 최근게시물 오류 정보

다시 질문드려요 ㅠㅠ 최근게시물 오류

본문

오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.

오류 주소 :


basic이 아닌 다른 스킨을 사용하려고 하면 select * from g4_board_file where bo_table = 'gallery' and wr_id in () order by bf_no

1064 : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') order by bf_no' at line 1

error file : /intro.html


대략 이런식으로 에러가 납니다ㅠㅠ
그누보드의 어떤 부분을 수정해야 하는지 상세히 알려주세요ㅠㅠ 그누보드를 사용한지 일주일 밖에 안된 초보라 막막하네요..

댓글 전체

//전체 파일 불러오기 예{select * from g4_board_file where bo_table = '4_5' and wr_id in (8136, 8135) order by bf_no}
// 위의 예와 같은 형식을 얻기 위해 id 값을 생성한다.
$wr_id_in = "";
for ($i=0; $i<count($list); $i++){
if($i) $wr_id_in .= ", ";
$wr_id_in .= $list[$i]['wr_id'];
}


혹시 여기서 고쳐야 하는 부분이 있는지..
// 최신글 추출
function latest($skin_dir="", $bo_table, $rows=10, $subject_len=40, $options="")
{
    global $g4;

    if ($skin_dir)
        $latest_skin_path = "$g4[path]/skin/latest/$skin_dir";
    else
        $latest_skin_path = "$g4[path]/skin/latest/basic";

    $list = array();

    $sql = " select * from $g4[board_table] where bo_table = '$bo_table'";
    $board = sql_fetch($sql);

    $tmp_write_table = $g4['write_prefix'] . $bo_table; // 게시판 테이블 전체이름


이부분 말씀이신가요??
latest() 라고 검색을 해보니까 나오질 않네요
전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

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