prepare('UPDATE plans SET name = ?, price = ?, billing_cycle = ?, features = ? WHERE id = ?'); $stmt->execute([$name, $price, $billing_cycle, $features_json, $plan_id]); $success_message = 'Plan updated successfully!'; } } $stmt = $pdo->prepare('SELECT * FROM plans WHERE id = ?'); $stmt->execute([$plan_id]); $plan = $stmt->fetch(PDO::FETCH_ASSOC); if (!$plan) { header('Location: plans.php'); exit; } } catch (PDOException $e) { $error_message = 'Database error: ' . $e->getMessage(); } ?>

Edit Plan

$
Cancel

Plan not found.