"; } if ($hasWriteAccess) { $edit_link = ""; } if ($hasExecuteAccess) { $delete_link = ""; } $space = "   "; $links = $space . $view_link . $space . $edit_link . $space . $delete_link; $data['rows'][] = array( 'id' => $row_productservice['id'], 'cell' => array($count++, $row_productservice['ailment_name'], $row_productservice['abnormality_name'], $links) ); } $data['rows'][] = array( 'id' => $row['filterkey'], 'cell' => array('', "", "", '', '') ); echo json_encode($data); ?>