function format_idr_price($value): string { if ($value === null || $value === '') { return '-'; } $numeric = (float) $value; return 'Rp ' . number_format($numeric, 0, ',', '.'); } function convert_price_to_idr_markup($value): ?float { if ($value === null || $value === '') { return null; } $numeric = (float) $value; if ($numeric <= 0) { return null; } $converted = domains_convert_usd_to_idr($numeric); if ($converted === null) { return null; } return domains_apply_idr_markup($converted); } try { $pdo = get_domains_pdo(); $stmt = $pdo->query('SELECT tld, registration, renewal, transfer FROM tld_prices ORDER BY tld ASC'); $tldPrices = $stmt->fetchAll(); } catch (Throwable $e) { $tldPrices = []; } ?> Domain Registration - KlikDomain