prepare("UPDATE users SET password = ? WHERE id = ?"); $stmt->execute([$hashed, $_SESSION['user_id']]); set_flash('success', 'Password changed successfully'); } header('Location: ' . SITE_URL . 'pages/change-password.php'); exit; } require_once '../includes/header.php'; require_once '../includes/navbar.php'; ?>

Change Password

Minimum 6 characters