prepare('SELECT * FROM users WHERE id = ?'); $stmt->execute([$_SESSION['user_id']]); $user = $stmt->fetch(); // Fetch subscription details // This part assumes you have a 'subscriptions' table that links to Stripe plan IDs. // You might need to adjust the table and column names (e.g., stripe_plan_id, status, etc.) $stmt = $pdo->prepare("SELECT * FROM subscriptions WHERE user_id = ? AND status = 'active'"); $stmt->execute([$_SESSION['user_id']]); $subscription = $stmt->fetch(); } catch (PDOException $e) { $error_message = "Database error: " . $e->getMessage(); } ?> My Profile - AI Recipe Generator

My Profile

Account Details

Username:

Email:

Phone:

Subscription Status
Active Plan:

Status:

Subscribed since:

Cancel Subscription

You are not subscribed to any plan.

View Plans