채택완료

코멘트수랑 별도로 답글수 표시하기?

제목 [n]

이런식으로 리스트에서 답글수도 구할 수 있나요?

|

답변 1개

채택된 답변
+20 포인트

참고 http://gnustudy.com/bbs/board.php?bo_table=skin_board&wr_id=199

<?php
$row_reply = sql_fetch(" select count(*) as cnt from {$write_table} where wr_num = '{$list[$i]['wr_num']}' and wr_reply != '' ");
if ($row_reply['cnt'] > 0 && !$list[$i]['wr_reply']) {
    echo '답글'.$row_reply['cnt'];
}
?>

답변을 작성하려면 로그인이 필요합니다.