if ($list[$i]['comment_cnt']) {
$new_cmt = sql_fetch("select wr_datetime from {$write_table} where wr_num = '{$list[$i]['wr_num']}' and wr_is_comment = 1 order by wr_id desc limit 1 ");
if ($new_cmt['wr_datetime'] >= date("Y-m-d H:i:s", G5_SERVER_TIME - (24 * 3600)))
echo "<img src='/img/new.png' alt='새코멘트'>";
위 처럼 list.php에 적용을 하면 댓글을 달았을 때 new가 뜨게 됩니다.
이 상태에서 해당 글을 클릭 했을 때 new아이콘이 사라지게 할 수 있는 방법이 있을까요?
답변 2개
채택된 답변
+20 포인트
답변을 작성하려면 로그인이 필요합니다.