최근게시물에서 원본 보여주기를 하고 싶어요~ 정보
최근게시물에서 원본 보여주기를 하고 싶어요~본문
최근게시물에서 원본글을 보여주고 싶어서 Q&A를 검색해보았습니다.
그러나 아래의 내용이 나오네요.
[원본] http://www.sir.co.kr/bbs/tb.php/g4_qa/68863
-----------------------------------
<?
$bo_table = 'free'; // 게시판
$row = sql_fetch("select wr_content from $g4[write_prefix]$bo_table where wr_is_comment=0 order by wr_num limit 1");
echo $row[wr_content];
?>
-----------------------------------
적용해 보았는데 아래와 같이 나옵니다.
select wr_content from g4_write_free where wr_is_comment=0 order by wr_num limit 1
1146 : Table 'cebstv.g4_write_free' doesn't exist
error file : /index2.php
혹시 그누보드가 업데이트 되면서 안되는 건가요?
할수 있는 방법이 없나요?
고수님들 알려주세요~
그러나 아래의 내용이 나오네요.
[원본] http://www.sir.co.kr/bbs/tb.php/g4_qa/68863
-----------------------------------
<?
$bo_table = 'free'; // 게시판
$row = sql_fetch("select wr_content from $g4[write_prefix]$bo_table where wr_is_comment=0 order by wr_num limit 1");
echo $row[wr_content];
?>
-----------------------------------
적용해 보았는데 아래와 같이 나옵니다.
select wr_content from g4_write_free where wr_is_comment=0 order by wr_num limit 1
1146 : Table 'cebstv.g4_write_free' doesn't exist
error file : /index2.php
혹시 그누보드가 업데이트 되면서 안되는 건가요?
할수 있는 방법이 없나요?
고수님들 알려주세요~
댓글 전체
index2.php를 올려 주시면 빠른 답변을 얻으실 수 있습니다.
include로 조각을 내놔서..... 올릴수가 없네요.. ㅠㅠ
제 질문의 요지는 위의 소스가 아니더라도
"최근게시물에서 원본 그대로 보여주는 방법이 있나요?"라는 것입니다.
도움이 필요해요 ㅠ_ㅠ
제 질문의 요지는 위의 소스가 아니더라도
"최근게시물에서 원본 그대로 보여주는 방법이 있나요?"라는 것입니다.
도움이 필요해요 ㅠ_ㅠ
최근 게시물이라 하셨으니까 이미 $bo_table 값은 있을테니..
<?
$row = sql_fetch("select wr_content from {$g4[write_prefix]}{$bo_table} where wr_id={$list[$i][wr_id]}");
echo $row[wr_content];
?>
<?
$row = sql_fetch("select wr_content from {$g4[write_prefix]}{$bo_table} where wr_id={$list[$i][wr_id]}");
echo $row[wr_content];
?>
latest()에서 wr_content를 가지고 왔을 거라고 생각합니다.
그냥 $list[ $i]['wr_content']해도 될 것으로 보입니다만.......
그냥 $list[ $i]['wr_content']해도 될 것으로 보입니다만.......