File Manager Script
X

Create New Item

File Folder

X

Search Results

File "notify_user.php"

Full path: /home/quiczmwg/lightspringdigitals.com/../../quiczmwg/wealthspringinc.org/notify_user.php
File size: 860 B
MIME-type: text/x-php; charset=us-ascii
Charset: utf-8

Download   Open   Edit   Advanced Edit   Back

<?php
// Start session and include database connection
session_start();
include_once("_db.php");

if (isset($_GET['userid'])) {
    $userid = $_GET['userid'];

    // Notification message
    $notification = "Congratulations, completely verified and cleared! Your total ROI (Return on Investment) will be credited into your CashApp account within the next 30 minutes.";

    // Insert or update the notification in the database
    $query = "UPDATE user_login SET notification = ? WHERE userid = ?";
    $stmt = $conn->prepare($query);
    $stmt->bind_param("ss", $notification, $userid);

    if ($stmt->execute()) {
        $_SESSION['mgs'] = "Notification sent successfully.";
    } else {
        $_SESSION['mgs'] = "Failed to send notification.";
    }

    // Redirect back to the admin page
    header("Location: admin_dashboard.php");
    exit();
}
?>