'최신글에 답변 안나오게 하기' 안되는데 문제있어요?
밑에처럼 팁 게시판에서 하면 된다고 했는데 안되는데요...
세번째처럼 고쳐서 그대로 했는데 그냥 나오던데... .왜이런거죠?
위에 사진처럼 나와서 헷갈려요.... 방법 좀 제발 알려주세요...
latest.lib.php파일에 DB에서 불러오는 부분이 있습니다.
$sql = " select *
from {$cfg[write_table_prefix]}{$bo_table}
where wr_comment = 0
order by wr_id desc limit 0, $rows ";
위 코드의 세번째 라인을 아래와 같이 고칩니다.
where wr_comment = 0 and wr_reply <> 'A'
또는 아래와 같이 고쳐도 무방합니다.
where wr_comment = 0 and wr_reply != 'A'
$sql = " select *
from {$cfg[write_table_prefix]}{$bo_table}
where wr_comment = 0
order by wr_id desc limit 0, $rows ";
위 코드의 세번째 라인을 아래와 같이 고칩니다.
where wr_comment = 0 and wr_reply <> 'A'
또는 아래와 같이 고쳐도 무방합니다.
where wr_comment = 0 and wr_reply != 'A'
첨부파일
|
댓글을 작성하시려면 로그인이 필요합니다.
댓글 8개
답변글 출력이 안되는데요..
// 최신글 추출
function latest($skin_dir='', $bo_table, $rows=10, $len=40)
{
global $latest_skin, $cfg;
$tmp_latest_skin = $latest_skin;
// 스킨디렉토리값이 넘어왔다면
if ($skin_dir) {
$latest_skin = "./bbs/skin/latest/$skin_dir";
}
$sql = " select * from $cfg[table_board] where bo_table = '$bo_table' ";
$bo = sql_fetch($sql);
$bo_subject = $bo[bo_subject];
$sql = " select *
from {$cfg[write_table_prefix]}{$bo_table}
where wr_comment = 0 and wr_reply <> 'A'
order by wr_id desc limit 0, $rows ";
$result = sql_query($sql);
확인해본결과 잘되는데요...
그럼 답변이라는 이미지 나오게 하는 방법도 안되고, 진짜 돌아버리겠어여~~~
암만해도 안되던데여....
hkrsone@hotmail.com 추가하세요...
msn으로 했어여~