'최신글에 답변 안나오게 하기' 안되는데 문제있어요? > 그누3질답

그누3질답

'최신글에 답변 안나오게 하기' 안되는데 문제있어요? 정보

'최신글에 답변 안나오게 하기' 안되는데 문제있어요?

본문

밑에처럼 팁 게시판에서 하면 된다고 했는데 안되는데요...
 
세번째처럼 고쳐서 그대로 했는데 그냥 나오던데... .왜이런거죠?
 
위에 사진처럼 나와서 헷갈려요.... 방법 좀 제발 알려주세요...
 
 
 
 
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'
  • 복사

댓글 전체

select *  from {$cfg[write_table_prefix]}{$bo_table} where wr_comment=0  and wr_reply <> 'A' order by wr_id desc limit 0 ,$rows ;

답변글 출력이 안되는데요..
latest.lib.php


// 최신글 추출
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);




확인해본결과 잘되는데요...
위에꺼 그대로 붙여넣기 했는데 안되요 ㅠ,ㅠ gnu/lib/latest.lib.php 파일 수정했는데...

그럼 답변이라는 이미지 나오게 하는 방법도 안되고, 진짜 돌아버리겠어여~~~
© SIRSOFT
현재 페이지 제일 처음으로