<? $statitem = sql_fetch("select * from {$g5['inventory_table']} inven, {$g5['item_table']} item where inven.ch_id = '$ch_id' and item.it_id = inven.it_id and inven.se_ch_id = '' and inven.in_use != '사용완료' and item.it_type = '지력추가'");?> &l…