//$sql_requisition_items="select a.*,b.* from requisition_items a inner join tbl_items b on a.item_id=b.item_id where req_id='".$_POST['req_id']."' " ;
if($_POST['cat']=='comm'){
$sql_requisition_items="SELECT question_id as id,question as name FROM questionaire_master i where question_type='checklist' order by question_sequence ";
}else{
$sql_requisition_items="SELECT item_id as id, trim(concat(ifnull(form_name,''),' ',item_name)) as name FROM tbl_items i left join medicine_form f on i.item_form_id=f.form_id where status='1' and is_group_item!='P' order by item_name";