g4를 g5로 변경
This commit is contained in:
@ -3,7 +3,7 @@ $sub_menu = '400300';
|
||||
include_once('./_common.php');
|
||||
|
||||
$sql = " select ca_id, it_id, it_name, it_price
|
||||
from {$g4['shop_item_table']}
|
||||
from {$g5['shop_item_table']}
|
||||
where it_id <> '$it_id'
|
||||
and ( ca_id like '$ca_id%' or ca_id2 like '$ca_id%' or ca_id3 like '$ca_id%' )
|
||||
order by ca_id, it_name ";
|
||||
@ -12,7 +12,7 @@ $result = sql_query($sql);
|
||||
$list = '';
|
||||
|
||||
for($i=0;$row=sql_fetch_array($result);$i++) {
|
||||
$sql2 = " select count(*) as cnt from {$g4['shop_item_relation_table']} where it_id = '$it_id' and it_id2 = '{$row['it_id']}' ";
|
||||
$sql2 = " select count(*) as cnt from {$g5['shop_item_relation_table']} where it_id = '$it_id' and it_id2 = '{$row['it_id']}' ";
|
||||
$row2 = sql_fetch($sql2);
|
||||
if ($row2['cnt'])
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user