diff --git a/adm/shop_admin/deliverylist.php b/adm/shop_admin/deliverylist.php
index a1d674cdf..38f010523 100644
--- a/adm/shop_admin/deliverylist.php
+++ b/adm/shop_admin/deliverylist.php
@@ -7,7 +7,7 @@ auth_check($auth[$sub_menu], "r");
$g5['title'] = '배송일괄처리';
include_once (G5_ADMIN_PATH.'/admin.head.php');
-//sql_query(" update $g5[shop_cart_table] set ct_status = '완료' where ct_status = '배송' ");
+//sql_query(" update {$g5['g5_shop_cart_table']} set ct_status = '완료' where ct_status = '배송' ");
// 배송회사리스트 ---------------------------------------------
$delivery_options = ''.PHP_EOL;
diff --git a/adm/shop_admin/index.php b/adm/shop_admin/index.php
index 5f0fa2ccc..f40285af9 100644
--- a/adm/shop_admin/index.php
+++ b/adm/shop_admin/index.php
@@ -149,7 +149,7 @@ $pg_anchor = '
'.$row['ca_name'].' ('.$row2['cnt'].')';
diff --git a/mobile/shop/search.php b/mobile/shop/search.php
index aa65d27d2..9b1a4cd07 100644
--- a/mobile/shop/search.php
+++ b/mobile/shop/search.php
@@ -94,7 +94,7 @@ $total_count = $row['cnt'];
$ca_temp = "";
if(strlen($save['ca_id']) > 2) // 중분류 이하일 경우
{
- $sql2 = " select ca_name from $g5[shop_category_table] where ca_id='".substr($save['ca_id'],0,2)."' ";
+ $sql2 = " select ca_name from {$g5['g5_shop_category_table']} where ca_id='".substr($save['ca_id'],0,2)."' ";
$row2 = sql_fetch($sql2);
$ca_temp = ''.$row2['ca_name'].' ';
}
diff --git a/shop/boxtodayview.inc.php b/shop/boxtodayview.inc.php
index dbf8713e7..629334e3a 100644
--- a/shop/boxtodayview.inc.php
+++ b/shop/boxtodayview.inc.php
@@ -22,7 +22,7 @@ $tv_div['img_length'] = 3; // 한번에 보여줄 이미지 수
for ($i=1;$i<=$tv_idx;$i++)
{
$tv_it_id = get_session("ss_tv[$i]");
- $rowx = sql_fetch(" select it_name from $g5[shop_item_table] where it_id = '$tv_it_id' ");
+ $rowx = sql_fetch(" select it_name from {$g5['g5_shop_item_table']} where it_id = '$tv_it_id' ");
$j = $i - 1;
if ($j%$tv_div['img_length']==0) $k++;
$it_name = get_text(addslashes($rowx['it_name']));
diff --git a/shop/listcategory.inc.php b/shop/listcategory.inc.php
index 93883bb48..8eeef4a62 100644
--- a/shop/listcategory.inc.php
+++ b/shop/listcategory.inc.php
@@ -10,7 +10,6 @@ $sql = " select ca_id, ca_name from {$g5['g5_shop_category_table']} where ca_id
$result = sql_query($sql);
while ($row=sql_fetch_array($result)) {
- //$row2 = sql_fetch(" select count(*) as cnt from $g5[shop_category_table] where ca_id like '$row[ca_id]%' ");
$row2 = sql_fetch(" select count(*) as cnt from {$g5['g5_shop_item_table']} where (ca_id like '{$row['ca_id']}%' or ca_id2 like '{$row['ca_id']}%' or ca_id3 like '{$row['ca_id']}%') and it_use = '1' ");
$str .= '- '.$row['ca_name'].' ('.$row2['cnt'].')
';
diff --git a/shop/search.php b/shop/search.php
index 0bad03912..3f2e97c57 100644
--- a/shop/search.php
+++ b/shop/search.php
@@ -99,7 +99,7 @@ $total_count = $row['cnt'];
$ca_temp = "";
if(strlen($save['ca_id']) > 2) // 중분류 이하일 경우
{
- $sql2 = " select ca_name from $g5[shop_category_table] where ca_id='".substr($save['ca_id'],0,2)."' ";
+ $sql2 = " select ca_name from {$g5['g5_shop_category_table']} where ca_id='".substr($save['ca_id'],0,2)."' ";
$row2 = sql_fetch($sql2);
$ca_temp = ''.$row2['ca_name'].' > ';
}