"; } if ($hasWriteAccess) { $edit_link = ""; } if ($hasExecuteAccess) { $delete_link = ""; } $space = "   "; $links = $assign_link . $space . $view_link . $space . $edit_link . $space . $delete_link; //$waste_category_name = getTableFieldValue ( 'waste_category', 'waste_category_name', 'waste_category_id', $row1['waste_category'] ); //$ohc_type_name = getTableFieldValue ( 'ohc_type ', 'ohc_type_name', 'ohc_type_id ', $row1['ohc_type_id '] ); $data ['rows'] [] = array ( 'id' => $row1 ['oxygen_cylinder_id'], 'cell' => array ( $links, $count ++, $cylinder_no, date_format ( date_create ( $row1 ['issued_date'] ), "d-M-Y" ), $row1['reading'], $row1['knob_condition'], $row1['regulator_key_knob_condition'], $checked_by, $dept_pers, $row1['remarks'] ) ); } commit(); $data['rows'][] = array( 'id' => $row['filterkey'], 'cell' => array('', "", "", '', '','', '', '', '', '', '', '', '','', '', '','', '', '','') ); echo json_encode($data); ?>