답변 1개
채택된 답변
+20 포인트
11년 전
<? include_once(G5_BBS_PATH.'/board.php?bo_table=plan&wr_id=1')?>
이지 않을까요?
근데 여러가지 문제가 발생할 것 같아요.
로그인 후 평가할 수 있습니다
답변에 대한 댓글 3개
l
ljy0318b
11년 전
바꿔보았는데도 안되네영 ㅠ 무엇이 문제인지 끙.. 저렇게는 개별페이지에 접근못하는건가영?
�
잉끼
11년 전
네. 저렇게는 불가능합니다.
poll.skin.php내에서 직접 해당 글 불러다가 넣어주는 수밖에 없습니다.
간단하게 내용만 불러오고 싶으시면
[code]
<?php
$bo_table = 'plan';
$wr_id = '1';
$board = sql_fetch(" select * from {$g5['board_table']} where bo_table = '$bo_table' ");
if ($board['bo_table']) {
set_cookie("ck_bo_table", $board['bo_table'], 86400 * 1);
$gr_id = $board['gr_id'];
$write_table = $g5['write_prefix'] . $bo_table; // 게시판 테이블 전체이름
//$comment_table = $g5['write_prefix'] . $bo_table . $g5['comment_suffix']; // 코멘트 테이블 전체이름
if (isset($wr_id) && $wr_id)
$write = sql_fetch(" select * from $write_table where wr_id = '$wr_id' ");
}
echo $$write['wr_content'];
?>
[/code]
를 원하시는
poll.skin.php 내부에서 넣으시면 될꺼에요..
테스트는 해보지 않았습니다.
poll.skin.php내에서 직접 해당 글 불러다가 넣어주는 수밖에 없습니다.
간단하게 내용만 불러오고 싶으시면
[code]
<?php
$bo_table = 'plan';
$wr_id = '1';
$board = sql_fetch(" select * from {$g5['board_table']} where bo_table = '$bo_table' ");
if ($board['bo_table']) {
set_cookie("ck_bo_table", $board['bo_table'], 86400 * 1);
$gr_id = $board['gr_id'];
$write_table = $g5['write_prefix'] . $bo_table; // 게시판 테이블 전체이름
//$comment_table = $g5['write_prefix'] . $bo_table . $g5['comment_suffix']; // 코멘트 테이블 전체이름
if (isset($wr_id) && $wr_id)
$write = sql_fetch(" select * from $write_table where wr_id = '$wr_id' ");
}
echo $$write['wr_content'];
?>
[/code]
를 원하시는
poll.skin.php 내부에서 넣으시면 될꺼에요..
테스트는 해보지 않았습니다.
l
ljy0318b
11년 전
감사합니다! 유사하게 글 읽어서 뿌리니 되네영
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인