상품문의 사용후기에서 it_id 체크 코드 추가 - 뽁스님 제안

This commit is contained in:
chicpro
2014-05-07 10:35:09 +09:00
parent 67d6e3a72b
commit 31891fb882
4 changed files with 24 additions and 0 deletions

View File

@ -10,6 +10,12 @@ $w = trim($_REQUEST['w']);
$it_id = trim($_REQUEST['it_id']);
$iq_id = trim($_REQUEST['iq_id']);
// 상품정보체크
$sql = " select it_id from {$g5['g5_shop_item_table']} where it_id = '$it_id' ";
$row = sql_fetch($sql);
if(!$row['it_id'])
alert_close('상품정보가 존재하지 않습니다.');
$chk_secret = '';
if($w == '') {

View File

@ -10,6 +10,12 @@ $w = trim($_REQUEST['w']);
$it_id = trim($_REQUEST['it_id']);
$is_id = trim($_REQUEST['is_id']);
// 상품정보체크
$sql = " select it_id from {$g5['g5_shop_item_table']} where it_id = '$it_id' ";
$row = sql_fetch($sql);
if(!$row['it_id'])
alert_close('상품정보가 존재하지 않습니다.');
if ($w == "") {
$is_score = 5;

View File

@ -16,6 +16,12 @@ $w = trim($_REQUEST['w']);
$it_id = trim($_REQUEST['it_id']);
$iq_id = trim($_REQUEST['iq_id']);
// 상품정보체크
$sql = " select it_id from {$g5['g5_shop_item_table']} where it_id = '$it_id' ";
$row = sql_fetch($sql);
if(!$row['it_id'])
alert_close('상품정보가 존재하지 않습니다.');
$chk_secret = '';
if($w == '') {

View File

@ -16,6 +16,12 @@ $w = trim($_REQUEST['w']);
$it_id = trim($_REQUEST['it_id']);
$is_id = trim($_REQUEST['is_id']);
// 상품정보체크
$sql = " select it_id from {$g5['g5_shop_item_table']} where it_id = '$it_id' ";
$row = sql_fetch($sql);
if(!$row['it_id'])
alert_close('상품정보가 존재하지 않습니다.');
if ($w == "") {
$is_score = 5;