item inventory 추가 함수 php 버전 오류 수정
item inventory 추가 함수 php 버전 오류 수정
This commit is contained in:
parent
0199a1d8cc
commit
96f69e45c1
1 changed files with 5 additions and 5 deletions
|
|
@ -52,11 +52,11 @@ function insert_inventory($ch_id, $it_id, $item = null, $count = 1) {
|
||||||
|
|
||||||
if($ch['ch_id']) {
|
if($ch['ch_id']) {
|
||||||
for($i=0; $i < $count; $i++) {
|
for($i=0; $i < $count; $i++) {
|
||||||
$inven_sql = " insert into {$g5[inventory_table]}
|
$inven_sql = " insert into {$g5['inventory_table']}
|
||||||
set ch_id = '{$ch[ch_id]}',
|
set ch_id = '{$ch['ch_id']}',
|
||||||
it_id = '{$item[it_id]}',
|
it_id = '{$item['it_id']}',
|
||||||
it_name = '{$item[it_name]}',
|
it_name = '{$item['it_name']}',
|
||||||
ch_name = '{$ch[ch_name]}'";
|
ch_name = '{$ch['ch_name']}'";
|
||||||
sql_query($inven_sql);
|
sql_query($inven_sql);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue