From 61c2fd4c51dc3dea39e4869c29dced0be489cb78 Mon Sep 17 00:00:00 2001 From: chicpro Date: Thu, 12 Jun 2014 16:42:15 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B7=B8=EB=88=84=EB=B3=B4=EB=93=9C4=20?= =?UTF-8?q?=EC=9D=B4=EC=A0=84=20=ED=94=84=EB=A1=9C=EA=B7=B8=EB=9E=A8?= =?UTF-8?q?=EC=97=90=20=EB=B0=A9=EB=AC=B8=EC=9E=90=20=ED=85=8C=EC=9D=B4?= =?UTF-8?q?=EB=B8=94=20=EC=82=AD=EC=A0=9C=20=EC=BD=94=EB=93=9C=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- g4_import_run.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/g4_import_run.php b/g4_import_run.php index 8392e0d6b..867af24cc 100644 --- a/g4_import_run.php +++ b/g4_import_run.php @@ -263,15 +263,21 @@ document.onkeydown = noRefresh ; // visit table 복사 $sql = " select * from {$g4['visit_table']} "; $result = sql_query($sql); + + // g5_visit 테이블 초기화 + sql_query(" delete from {$g5['visit_table']} "); + for($i=0; $row=sql_fetch_array($result); $i++) { if($is_euckr) $row = array_map('iconv_utf8', $row); // 중복체크 + /* $sql2 = " select count(*) as cnt from {$g5['visit_table']} where vi_ip = '{$row['vi_ip']}' and vi_date = '{$row['vi_date']}' "; $row2 = sql_fetch($sql2); if($row2['cnt']) continue; + */ $comma = ''; $sql_common = ''; @@ -289,15 +295,21 @@ document.onkeydown = noRefresh ; // visit sum table 복사 $sql = " select * from {$g4['visit_sum_table']} "; $result = sql_query($sql); + + // g5_visit_sub 테이블 초기화 + sql_query(" delete from {$g5['visit_sum_table']} "); + for($i=0; $row=sql_fetch_array($result); $i++) { if($is_euckr) $row = array_map('iconv_utf8', $row); // 중복체크 + /* $sql2 = " select count(*) as cnt from {$g5['visit_sum_table']} where vs_date = '{$row['vs_date']}' "; $row2 = sql_fetch($sql2); if($row2['cnt']) continue; + */ $comma = ''; $sql_common = '';