diff --git a/shop/search.php b/shop/search.php index e90ecd36b..7289b4ffa 100644 --- a/shop/search.php +++ b/shop/search.php @@ -83,9 +83,9 @@ $total_count = $row['cnt']; $save['it_id'][$save['cnt']] = $row['it_id']; $save[cnt]++; } + mysql_free_result($result); } - mysql_free_result($result); write_search_save($save); function write_search_save($save) @@ -106,7 +106,7 @@ $total_count = $row['cnt']; ?>