shop 테이블명 g5_shop 으로 변경

This commit is contained in:
chicpro
2013-09-13 16:23:29 +09:00
parent fbe71caa80
commit 90ee89b4f5
217 changed files with 933 additions and 1624 deletions

View File

@ -27,19 +27,19 @@ if ($w == "")
//if(eregi("[^a-z0-9_]", $co_id)) alert("ID 는 영문자, 숫자, _ 만 가능합니다.");
if(preg_match("/[^a-z0-9_]/i", $co_id)) alert("ID 는 영문자, 숫자, _ 만 가능합니다.");
$sql = " select co_id from {$g5['shop_content_table']} where co_id = '$co_id' ";
$sql = " select co_id from {$g5['g5_shop_content_table']} where co_id = '$co_id' ";
$row = sql_fetch($sql);
if ($row['co_id'])
alert("이미 같은 ID로 등록된 내용이 있습니다.");
$sql = " insert {$g5['shop_content_table']}
$sql = " insert {$g5['g5_shop_content_table']}
set co_id = '$co_id',
$sql_common ";
sql_query($sql);
}
else if ($w == "u")
{
$sql = " update {$g5['shop_content_table']}
$sql = " update {$g5['g5_shop_content_table']}
set $sql_common
where co_id = '$co_id' ";
sql_query($sql);
@ -49,7 +49,7 @@ else if ($w == "d")
@unlink(G5_DATA_PATH."/content/{$co_id}_h");
@unlink(G5_DATA_PATH."/content/{$co_id}_t");
$sql = " delete from {$g5['shop_content_table']} where co_id = '$co_id' ";
$sql = " delete from {$g5['g5_shop_content_table']} where co_id = '$co_id' ";
sql_query($sql);
}