Update Banyak

This commit is contained in:
WD - Dev
2025-09-21 21:40:17 +07:00
parent c6bee729c5
commit efca8f5f80
145 changed files with 195185 additions and 1378 deletions
+21
View File
@@ -0,0 +1,21 @@
<?php
include '../config/connect.php';
$id = isset($_GET['id']) ? intval($_GET['id']) : 0;
$s = isset($_GET['s']) ? intval($_GET['s']) : 0;
if($id > 0){
if($s == 1 ){
$colum = "v_akumulasi_client_payment";
} else {
$colum = "v_akumulasi_paygw";
}
$stmt = $pdo->prepare("SELECT tersedia AS saldo FROM $colum WHERE id_data_server = :id LIMIT 1");
$stmt->execute([':id' => $id]);
$row = $stmt->fetch(PDO::FETCH_ASSOC);
echo json_encode($row ?: ["saldo" => 0]);
} else {
echo json_encode(["saldo" => 0]);
}