/
home
/
efamember
/
domains
/
efa-member.com
/
public_html
/
backoffice
/
ajax
/
notifications
/
up file
home
<?php include('../../../config/main_function.php'); $secure = "cAh3DrJACzw4RbU"; $connection = connectDB($secure); if ($_SERVER["REQUEST_METHOD"] == "POST") { $id = $_POST['id']; $stmt = $connection->prepare("UPDATE tbl_notifications SET status = 'read' WHERE id = ?"); $stmt->bind_param("i", $id); $stmt->execute(); $stmt->close(); echo "Notification marked as read."; } ?>