"; } if ($hasReadAccess || $hasWriteAccess || $hasExecuteAccess) { // $view_link1 = ""; } $space = "  "; $links = $view_link1 . $space . $edit_link1; $data['rows'][] = array( 'id' => $row1['item_id'], 'cell' => array( $count++, $item_name, $latest_cost, $old_cost, $applicable_date, $links ) ); } $data['rows'][] = array( 'id' => $row['filterkey'], 'cell' => array( '', "", "", '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '' ) ); echo json_encode($data); ?>