"; } if($hasWriteAccess ) { $edit_link=""; } if($hasExecuteAccess ) { $delete_link=""; } $first_aider_names=getCommaSeperatedValuesForInClause("select patient_name from patient_master","id",$row_first_aid_box['first_aider']); $space="   "; $links =$space.$view_link.$space.$edit_link.$space.$delete_link; $data['rows'][] = array( 'id' => $row_first_aid_box['box_id'], 'cell' => array( $links,$count++, $row_first_aid_box['box_name'], $row_first_aid_box['box_code'] , $row_first_aid_box['box_loc'],$first_aider_names) ); } echo json_encode($data); ?>