|
|
|
18년 전
|
조회 1,521
|
|
|
|
18년 전
|
조회 1,536
|
|
|
|
18년 전
|
조회 1,581
|
|
|
|
18년 전
|
조회 1,559
|
|
|
|
18년 전
|
조회 1,543
|
|
|
|
18년 전
|
조회 1,524
|
|
|
|
18년 전
|
조회 1,548
|
|
|
|
18년 전
|
조회 1,539
|
|
|
|
18년 전
|
조회 1,613
|
|
|
|
18년 전
|
조회 1,532
|
|
|
|
18년 전
|
조회 1,590
|
|
|
|
18년 전
|
조회 1,555
|
|
|
|
18년 전
|
조회 1,604
|
|
|
|
18년 전
|
조회 1,151
|
|
|
|
18년 전
|
조회 1,576
|
|
|
|
18년 전
|
조회 1,697
|
|
|
|
18년 전
|
조회 1,603
|
|
|
|
18년 전
|
조회 1,535
|
|
|
|
18년 전
|
조회 1,547
|
|
|
|
18년 전
|
조회 1,763
|
댓글 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] 로 출력합니다.