테이블 변수명에서 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

@ -7,14 +7,14 @@ if (!$is_member)
if ($w == "d")
{
$wi_id = trim($_GET['wi_id']);
$sql = " delete from {$g4['yc4_wish_table']}
$sql = " delete from {$g4['shop_wish_table']}
where wi_id = '$wi_id'
and mb_id = '{$member['mb_id']}' ";
sql_query($sql);
}
else if ($w == "alldelete")
{
$sql = " delete from {$g4['yc4_wish_table']}
$sql = " delete from {$g4['shop_wish_table']}
where mb_id = '{$member['mb_id']}' ";
sql_query($sql);
}
@ -25,15 +25,15 @@ else
wi_time = '".G4_TIME_YMDHIS."',
wi_ip = '$REMOTE_ADDR' ";
$sql = " select wi_id from {$g4['yc4_wish_table']}
$sql = " select wi_id from {$g4['shop_wish_table']}
where mb_id = '{$member['mb_id']}' and it_id = '$it_id' ";
$row = sql_fetch($sql);
if ($row['wi_id']) { // 이미 있다면 삭제함
$sql = " delete from {$g4['yc4_wish_table']} where wi_id = '{$row['wi_id']}' ";
$sql = " delete from {$g4['shop_wish_table']} where wi_id = '{$row['wi_id']}' ";
sql_query($sql);
}
$sql = " insert {$g4['yc4_wish_table']}
$sql = " insert {$g4['shop_wish_table']}
set mb_id = '{$member['mb_id']}',
it_id = '$it_id',
wi_time = '".G4_TIME_YMDHIS."',