<?php
require_once 'config.php';
require_once 'includes/db.php';

try {
    $stmt = $pdo->prepare("INSERT INTO system_notifications (message, is_active) VALUES (?, 1)");
    $stmt->execute(["Test notification from script"]);
    echo "INSERT SUCCESS!\n";
    $stmt = $pdo->query("SELECT * FROM system_notifications");
    print_r($stmt->fetchAll(PDO::FETCH_ASSOC));
} catch (PDOException $e) {
    echo "INSERT ERROR: " . $e->getMessage() . "\n";
}
?>

