답변 4개
게시판 선택은 아래처럼 하면 됩니다
글쓰기 페이지 상단
$result=sql_query("select bo_table, bo_subject from $g5[board_table]");
$opt='선택하세요';
while($row=sql_fetch_array($result)){
$opt.="";
}
?>
form 내부 적당한 위치에
게시판 선택
<---삭제
스킨폴더에 write_update.head.skin.php 생성
set_session('ss_bo_table', $bo_table);
?>
답변에 대한 댓글 5개
코드는 아래 넣어 놨습니다.
$opt.="<option value='<?=$row[bo_table]?>'><?=$row[bo_subject]?></option>";
---> 수정
$opt.="<option value='{$row[bo_table}'>{$row[bo_subject]}</option>";
$opt.="<option value='{$row[bo_table}'>{$row[bo_subject]}</option>";
을 지우면 빈 셀렉크 박스만 남긴합니다.
이상태에서 무시하고
그냥 글쓰기 버튼을 클릭하면
select MD5(CONCAT(wr_ip, wr_subject, wr_content)) as prev_md5 from order by wr_id desc limit 1
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 wr_id desc limit 1' at line 1
error file : /bbs4/bbs/write_update.php
이런 메세지가 나옵니다 특이점은 제가 bbs4폴더에 보드를 설치한것외에는 없는데요
도와주신건데 자꾸 이래서 죄송스럽네요..
댓글을 작성하려면 로그인이 필요합니다.
균이님~ 그렇게 5를 4로 어제 했는데 에러가 나더라구요..
죄손합니다만 한번만 봐주시겠어요?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if ($is_dhtml_editor) {
include_once("$g4[path]/lib/cheditor4.lib.php");
echo "";
echo cheditor1('wr_content', '100%', '250');
}
?>
$result=sql_query("select bo_table, bo_subject from $g4[board_table]");
$opt='선택하세요';
while($row=sql_fetch_array($result)){
$opt.="";
}
?>
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인
염치 없지만 하나만더 문의 드릴께요 혹시 그누보드4 도 같은 코드를 적용하나요?
그누4로 설치하게 되어서.. 적용해 보니 역시 안되더군요.. ㅜㅜ 게시판 리스트가 안불려와 지더군요..
답변 부탁 드립니다.