Tc Panel Sorgu Upd ❲TRENDING 2025❳

// UPD (Update) if($_POST['action'] == 'update_coins') $id = (int)$_POST['id']; $new_coins = (int)$_POST['coins']; $stmt = $db->prepare("UPDATE accounts SET coins = ? WHERE id = ?"); $stmt->bind_param("ii", $new_coins, $id); if($stmt->execute()) echo "Güncelleme başarılı (UPD OK)"; // Log the change $db->query("INSERT INTO upd_log (user, target_id, old_coins, new_coins, time) VALUES ('$_SESSION['admin']', $id, (SELECT coins FROM accounts WHERE id=$id), $new_coins, NOW())"); else echo "UPD hatası: ".$db->error;