경로 및 전체테이블명 변경
This commit is contained in:
@ -3,7 +3,7 @@ include_once('./_common.php');
|
||||
|
||||
// 새로 테이블을 만든 경우 기존 옵션정보 삭제
|
||||
if($makemode == 'create') {
|
||||
$sql = " delete from `{$g4['yc4_supplement_table']}` where it_id = '$it_id' ";
|
||||
$sql = " delete from `{$g4['shop_supplement_table']}` where it_id = '$it_id' ";
|
||||
sql_query($sql);
|
||||
}
|
||||
|
||||
@ -11,7 +11,7 @@ if($makemode == 'create') {
|
||||
$count = count($_POST['sp_id']);
|
||||
|
||||
if(!$count) {
|
||||
$sql = " update {$g4['yc4_item_table']} set it_supplement_use = '0' where it_id = '$it_id' ";
|
||||
$sql = " update {$g4['shop_item_table']} set it_supplement_use = '0' where it_id = '$it_id' ";
|
||||
sql_query($sql);
|
||||
echo '<script>self.close();</script>';
|
||||
exit;
|
||||
@ -23,12 +23,12 @@ for($i = 0; $i < $count; $i++) {
|
||||
sp_notice = '{$_POST['sp_notice'][$i]}',
|
||||
sp_use = '{$_POST['sp_use'][$i]}' ";
|
||||
|
||||
$row = sql_fetch(" select sp_id from `{$g4['yc4_supplement_table']}` where it_id = '$it_id' and sp_id = '{$_POST['sp_id'][$i]}' ");
|
||||
$row = sql_fetch(" select sp_id from `{$g4['shop_supplement_table']}` where it_id = '$it_id' and sp_id = '{$_POST['sp_id'][$i]}' ");
|
||||
|
||||
if($row['sp_id']) {
|
||||
$sql = " update `{$g4['yc4_supplement_table']}` set $sql_common where it_id = '$it_id' and sp_id = '{$_POST['sp_id'][$i]}' ";
|
||||
$sql = " update `{$g4['shop_supplement_table']}` set $sql_common where it_id = '$it_id' and sp_id = '{$_POST['sp_id'][$i]}' ";
|
||||
} else {
|
||||
$sql = " insert into `{$g4['yc4_supplement_table']}` set it_id = '$it_id', sp_id = '{$_POST['sp_id'][$i]}', $sql_common ";
|
||||
$sql = " insert into `{$g4['shop_supplement_table']}` set it_id = '$it_id', sp_id = '{$_POST['sp_id'][$i]}', $sql_common ";
|
||||
}
|
||||
|
||||
sql_query($sql);
|
||||
|
||||
Reference in New Issue
Block a user