$result=sql_fetch("select * from {$g5['item_table']} where it_id = '{$it_id}'");
return$result;
}
functionget_item_img($it_id){
global$g5;
$result=sql_fetch("select it_img from {$g5['item_table']} where it_id = '{$it_id}'");
return$result['it_img'];
}
functionget_item_detail_img($it_id){
global$g5;
$result=sql_fetch("select it_1 from {$g5['item_table']} where it_id = '{$it_id}'");
return$result['it_1'];
}
functionget_item_name($it_id){
global$g5;
$result=sql_fetch("select it_name from {$g5['item_table']} where it_id = '{$it_id}'");
return$result['it_name'];
}
functionget_inventory_item($in_id){
global$g5;
//$result = sql_fetch("select inven.in_id, inven.ch_id, item.it_type, item.it_value, item.it_name from {$g5['inventory_table']} inven, {$g5['item_table']} item where inven.in_id = '{$in_id}' and inven.it_id = item.it_id");
$result=sql_fetch("select * from {$g5['inventory_table']} inven, {$g5['item_table']} item where inven.in_id = '{$in_id}' and inven.it_id = item.it_id");
return$result;
}
// 아이템 삭제
functiondelete_inventory($in_id,$is_del=0){
global$g5;
if($is_del=='0'){
sql_query("delete from {$g5['inventory_table']} where in_id = '{$in_id}'");