상품코드에 _ 추가

This commit is contained in:
chicpro
2013-05-14 09:32:48 +09:00
parent ea58637d61
commit 17ac326656
4 changed files with 8 additions and 8 deletions

View File

@ -289,9 +289,9 @@ if ($w == "")
alert('상품 코드가 없으므로 상품을 추가하실 수 없습니다.');
}
$t_it_id = preg_replace("/[A-Za-z0-9\-]/", "", $it_id);
$t_it_id = preg_replace("/[A-Za-z0-9\-_]/", "", $it_id);
if($t_it_id)
alert('상품 코드는 영문자, 숫자, - 만 사용할 수 있습니다.');
alert('상품 코드는 영문자, 숫자, -, _ 만 사용할 수 있습니다.');
$sql = " insert {$g4['shop_item_table']}
set it_id = '$it_id',