다시 질문드려요 ㅠㅠ 최근게시물 오류
오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.
오류 주소 :
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
대략 이런식으로 에러가 납니다ㅠㅠ
그누보드의 어떤 부분을 수정해야 하는지 상세히 알려주세요ㅠㅠ 그누보드를 사용한지 일주일 밖에 안된 초보라 막막하네요..
오류 주소 :
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
대략 이런식으로 에러가 납니다ㅠㅠ
그누보드의 어떤 부분을 수정해야 하는지 상세히 알려주세요ㅠㅠ 그누보드를 사용한지 일주일 밖에 안된 초보라 막막하네요..
|
댓글을 작성하시려면 로그인이 필요합니다.
댓글 8개
wr_id in () 아무 내용이 없어서 생기는 것같습니다.
wr_id in ('요안에 원하는것을 넣어줘보세요')
에러나는 곳은 여기입니다
// 위의 예와 같은 형식을 얻기 위해 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() 라고 검색을 해보니까 나오질 않네요