prepare("INSERT INTO payouts (user_id, betrag) VALUES (?, ?)"); $stmt->bind_param("id", $userId, $betrag); $stmt->execute(); $stmt->close(); // Benachrichtigung für Admins $message = "hat eine Auszahlung in Höhe von {$betrag}€ beantragt."; $notif = $dbhandle->prepare("INSERT INTO notifications (user_id, message, type) VALUES (?, ?, 'payout')"); $notif->bind_param("is", $userId, $message); $notif->execute(); $notif->close(); echo "✅ Auszahlung beantragt!"; } ?>