코멘트수랑 별도로 답글수 표시하기?
본문
제목 [n]
이런식으로 리스트에서 답글수도 구할 수 있나요?
답변 1
참고 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'];
}
?>
답변을 작성하시기 전에 로그인 해주세요.