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

@ -9,7 +9,7 @@ if ($w == 'd')
else
auth_check($auth[$sub_menu], "w");
$iq = sql_fetch(" select * from {$g4['yc4_item_qa_table']} where iq_id = '$iq_id' ");
$iq = sql_fetch(" select * from {$g4['shop_item_qa_table']} where iq_id = '$iq_id' ");
if (!$iq['iq_id']) {
alert('등록된 자료가 없습니다.');
}
@ -17,7 +17,7 @@ if (!$iq['iq_id']) {
$qstr = "page=$page&sort1=$sort1&sort2=$sort2";
if ($w == "u") {
$sql = "update {$g4['yc4_item_qa_table']}
$sql = "update {$g4['shop_item_qa_table']}
set iq_subject = '$iq_subject',
iq_question = '$iq_question',
iq_answer = '$iq_answer'
@ -26,7 +26,7 @@ if ($w == "u") {
goto_url("./itemqaform.php?w=$w&iq_id=$iq_id&$qstr");
} else if ($w == "d") {
$sql = "delete from {$g4['yc4_item_qa_table']} where iq_id = '$iq_id' ";
$sql = "delete from {$g4['shop_item_qa_table']} where iq_id = '$iq_id' ";
sql_query($sql);
goto_url("./itemqalist.php?$qstr");