diff --git a/mobile/shop/search.php b/mobile/shop/search.php index 63396050e..584ea9952 100644 --- a/mobile/shop/search.php +++ b/mobile/shop/search.php @@ -62,8 +62,7 @@ if ($q) { $detail_where[] = $concat_fields." like '%$word%' "; // 인기검색어 - $sql = " insert into {$g5['popular_table']} set pp_word = '$word', pp_date = '".G5_TIME_YMD."', pp_ip = '{$_SERVER['REMOTE_ADDR']}' "; - sql_query($sql, FALSE); + insert_popular($concat, $word); } $where[] = "(".implode(" and ", $detail_where).")"; diff --git a/shop/search.php b/shop/search.php index b7be10224..ba61dc4e3 100644 --- a/shop/search.php +++ b/shop/search.php @@ -67,8 +67,7 @@ if ($q) { $detail_where[] = $concat_fields." like '%$word%' "; // 인기검색어 - $sql = " insert into {$g5['popular_table']} set pp_word = '$word', pp_date = '".G5_TIME_YMD."', pp_ip = '{$_SERVER['REMOTE_ADDR']}' "; - sql_query($sql, FALSE); + insert_popular($concat, $word); } $where[] = "(".implode(" and ", $detail_where).")";