테이블 변수명에서 yc4_를 shop_로 변경

This commit is contained in:
chicpro
2013-04-09 15:34:05 +09:00
parent 512c8feaf8
commit 4d95a696cd
149 changed files with 722 additions and 740 deletions

View File

@ -3,20 +3,20 @@ $sub_menu = '400300';
include_once('./_common.php');
$sql = " select ca_id, it_id, it_name, it_amount
from {$g4['yc4_item_table']}
from {$g4['shop_item_table']}
where ca_id like '$ca_id%'
and it_id <> '$it_id'
order by ca_id, it_name ";
$result = sql_query($sql);
for($i=0;$row=sql_fetch_array($result);$i++) {
//$sql2 = " select count(*) as cnt from $g4[yc4_item_relation_table] where it_id = '$row[it_id]' ";
$sql2 = " select count(*) as cnt from {$g4['yc4_item_relation_table']} where it_id = '$it_id' and it_id2 = '{$row['it_id']}' ";
//$sql2 = " select count(*) as cnt from $g4[shop_item_relation_table] where it_id = '$row[it_id]' ";
$sql2 = " select count(*) as cnt from {$g4['shop_item_relation_table']} where it_id = '$it_id' and it_id2 = '{$row['it_id']}' ";
$row2 = sql_fetch($sql2);
if ($row2['cnt'])
continue;
$sql2 = " select ca_name from {$g4['yc4_category_table']} where ca_id = '{$row['ca_id']}' ";
$sql2 = " select ca_name from {$g4['shop_category_table']} where ca_id = '{$row['ca_id']}' ";
$row2 = sql_fetch($sql2);
$ca_name = addslashes($row2['ca_name']);