prepare("UPDATE subscribers SET subscribed = 0 WHERE email = ?");
$stmt->bind_param('s', $email);
$stmt->execute();
$stmt->close();
$db->close();
// Show a confirmation message to the user
echo "You have successfully unsubscribed from our mailing list.";
} else {
echo "Invalid request.";
}
?>