사용후기, 상품문의 코드 수정 완료

This commit is contained in:
gnuboard
2013-06-18 18:05:07 +09:00
parent 4e37dc6abd
commit 3680563f12
12 changed files with 206 additions and 697 deletions

View File

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