상품조회수 관련 쿠키 코드 수정

This commit is contained in:
chicpro
2014-04-02 09:16:55 +09:00
parent b105a38d39
commit b85a795916
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ if (!$saved) {
// 오늘 본 상품 저장 끝
// 조회수 증가
if ($_COOKIE['ck_it_id'] != $it_id) {
if (get_cookie('ck_it_id') != $it_id) {
sql_query(" update {$g5['g5_shop_item_table']} set it_hit = it_hit + 1 where it_id = '$it_id' "); // 1증가
set_cookie("ck_it_id", $it_id, time() + 3600); // 1시간동안 저장
}

View File

@ -52,7 +52,7 @@ if (!$saved) {
// 오늘 본 상품 저장 끝
// 조회수 증가
if ($_COOKIE['ck_it_id'] != $it_id) {
if (get_cookie('ck_it_id') != $it_id) {
sql_query(" update {$g5['g5_shop_item_table']} set it_hit = it_hit + 1 where it_id = '$it_id' "); // 1증가
set_cookie("ck_it_id", $it_id, time() + 3600); // 1시간동안 저장
}