"; } if ($hasWriteAccess) { $edit_link = ""; } if ($hasExecuteAccess) { $delete_link = ""; } $space = "   "; $links = $assign_link . $space . $view_link . $space . $edit_link . $space . $delete_link; $calibration_equp=getTableFieldValue('tbl_items','item_name','item_id',$row1['cat_id']); // error_log("calibration_equp".$calibration_equp); $data ['rows'] [] = array ( 'id' => $row1 ['id'], 'cell' => array ( $links, $count ++, $calibration_equp, date_format ( date_create ( $row1 ['cali_on'] ), "d-M-Y" ), date_format ( date_create ( $row1 ['next_cali'] ), "d-M-Y" ) ) ); } commit(); $data['rows'][] = array( 'id' => $row['filterkey'], 'cell' => array('', "", "", '', '','', '', '', '', '', '', '', '','', '', '','', '', '','') ); echo json_encode($data); ?>