item inventory 추가 함수 php 버전 오류 수정

item inventory 추가 함수 php 버전 오류 수정
This commit is contained in:
TATECK 2024-01-30 22:27:47 +09:00
parent 0199a1d8cc
commit 96f69e45c1

View file

@ -52,11 +52,11 @@ function insert_inventory($ch_id, $it_id, $item = null, $count = 1) {
if($ch['ch_id']) {
for($i=0; $i < $count; $i++) {
$inven_sql = " insert into {$g5[inventory_table]}
set ch_id = '{$ch[ch_id]}',
it_id = '{$item[it_id]}',
it_name = '{$item[it_name]}',
ch_name = '{$ch[ch_name]}'";
$inven_sql = " insert into {$g5['inventory_table']}
set ch_id = '{$ch['ch_id']}',
it_id = '{$item['it_id']}',
it_name = '{$item['it_name']}',
ch_name = '{$ch['ch_name']}'";
sql_query($inven_sql);
}
}