보드를 인크루드하는 방법? 정보
보드를 인크루드하는 방법?
본문
좌측 메뉴를 따로 사용하려 하는데요
index.php(=main)
left.php(=head.php)
menu.php(menu 개수만큼 따로)
이렇게 만들어서
index.php?menu=1&doc=보드
이런방식으로 메뉴에 링크를 각각 하려고 합니다.
그래서 left.php 에는
if($menu=1){
include_once(menu1.php)
}
index 에는
if($doc=bd_name){
include_once(-----------------)
}
이렇식으로 하려고 하는데(방법이 가능한지 모르겠지만..)
menu1.php는 잘 불려지는데,
bbs/board.php?bo_table=freeboard 이걸 불러오고 싶은데
잘 안되네요..
iframe으로 말구요..
부탁합니다
댓글 전체

include_once('bbs/board.php?bo_table=freeboard');
이걸 원하시는거 같은데, 아래와 같이 해보심은?
$bo_table='freeboard';
include_once('bbs/board.php');
이걸 원하시는거 같은데, 아래와 같이 해보심은?
$bo_table='freeboard';
include_once('bbs/board.php');
g3로군요.
모든 것은 index.php가 다 include합니다.
indexdoctype.php 내용을 참고 하세요.
모든 것은 index.php가 다 include합니다.
indexdoctype.php 내용을 참고 하세요.

<?
if($doc=='1'){
$bo_table='freebd_of';
include_once('./bbs/board.php');
}
?>
위와 같이 하면 '존재하지 않는 게시판'이라 뜨네요
보드는 부르는것 같은데 $bo_table 값을 못넘겨 주는것 같습니다.
if($doc=='1'){
$bo_table='freebd_of';
include_once('./bbs/board.php');
}
?>
위와 같이 하면 '존재하지 않는 게시판'이라 뜨네요
보드는 부르는것 같은데 $bo_table 값을 못넘겨 주는것 같습니다.