|
|
|
18년 전
|
조회 1,489
|
|
|
|
18년 전
|
조회 1,513
|
|
|
|
18년 전
|
조회 1,555
|
|
|
|
18년 전
|
조회 1,532
|
|
|
|
18년 전
|
조회 1,512
|
|
|
|
18년 전
|
조회 1,500
|
|
|
|
18년 전
|
조회 1,526
|
|
|
|
18년 전
|
조회 1,510
|
|
|
|
18년 전
|
조회 1,578
|
|
|
|
18년 전
|
조회 1,510
|
|
|
|
18년 전
|
조회 1,564
|
|
|
|
18년 전
|
조회 1,529
|
|
|
|
18년 전
|
조회 1,573
|
|
|
|
18년 전
|
조회 1,118
|
|
|
|
18년 전
|
조회 1,544
|
|
|
|
18년 전
|
조회 1,663
|
|
|
|
18년 전
|
조회 1,576
|
|
|
|
18년 전
|
조회 1,511
|
|
|
|
18년 전
|
조회 1,520
|
|
|
|
18년 전
|
조회 1,736
|
댓글 2개
if ($list[$i][is_notice]) // 공지사항
이부분을 찾아 이 윗 부분에
$blatime1 = date("Y-m-d H:i:s",time());
$blatime2 = date("Y-m-d 00:00:00",time());
if($blatime1 != $list[$i][wr_2]){
sql_query(" update $write_table set wr_1 = '0' where wr_id = '$list[$i][wr_id]' ");
sql_query(" update $write_table set wr_2 = '$blatime2' where wr_id = '$list[$i][wr_id]' ");
}
이것을 추가해주고
view.skin.php의 상단에
sql_query(" update $write_table set wr_1 = wr_1+1 where wr_id = '$view[wr_id]' ");
이것을 추가해줍니다. 다음으로는 wr_1 을 출력해주기만 하면 됩니다.
list.skin.php 에서는 $list[$i][wr_1] 로 출력하고 view.skin.php 에서는 $view[wr_1] 로 출력합니다.