prepare("SELECT * FROM users WHERE id = ?"); $stmt->execute([$target_user_id]); $target_user = $stmt->fetch(); if (!$target_user) { die("User not found."); } $is_own_profile = ($current_user_id == $target_user_id); $stmt_current = db()->prepare("SELECT role FROM users WHERE id = ?"); $stmt_current->execute([$current_user_id]); $current_user = $stmt_current->fetch(); $platformName = defined('PLATFORM_NAME') ? PLATFORM_NAME : 'Gatsby'; // Fetch target user's startups if they are a founder $startups = []; if ($target_user['role'] === 'founder') { $stmt = db()->prepare("SELECT * FROM startups WHERE founder_id = ? ORDER BY created_at DESC"); $stmt->execute([$target_user_id]); $startups = $stmt->fetchAll(); } ?> <?= htmlspecialchars($target_user['full_name']) ?> | Profile
<?= htmlspecialchars($platformName) ?> Logo
Edit Profile Log Out

About

Details

Location
Commitment

Skills & Expertise

No skills listed.

'; ?>

Ventures

No startups listed.

'; ?>

Investment Profile

Appetite
Risk Tolerance

Interests

No interests listed.

'; ?>