prepare("DELETE FROM coach_recurring_availability WHERE id = ? AND coach_id = ?"); $stmt->execute([$availability_id, $coach_id]); header('Location: dashboard.php?status=recurring_deleted'); } catch (PDOException $e) { header('Location: dashboard.php?status=error'); } } else { header('Location: dashboard.php'); } exit;