<?php
// config.php
$host = 'localhost';
$db   = 'db_mlm_app';
$user = 'root';
$pass = '';

$conn = new mysqli($host, $user, $pass, $db);

if ($conn->connect_error) {
    die("Connection failed: " . $conn->connect_error);
}

// Helper untuk format Rupiah
function formatRupiah($angka){
    return "Rp " . number_format($angka,0,',','.');
}

// Simulasi Kurs (Di production gunakan API Real)
$kurs_usd_idr = 15500; 
?>