prepare("UPDATE coaches SET buffer_time = ?, timezone = ? WHERE id = ?"); $stmt->execute([$buffer_time, $timezone, $coach_id]); header('Location: dashboard.php?status=settings_updated'); exit; } else { header('Location: dashboard.php'); exit; }