prepare("SELECT * FROM users WHERE id = ?"); $stmt->execute([$_SESSION['user_id']]); $user = $stmt->fetch(); $platformName = defined('PLATFORM_NAME') ? PLATFORM_NAME : 'Gatsby'; $myInvestments = []; $stmt = db()->prepare("SELECT i.*, s.name as startup_name, s.description as startup_desc FROM investments i JOIN startups s ON i.startup_id = s.id WHERE i.investor_id = ? ORDER BY i.created_at DESC"); $stmt->execute([$_SESSION['user_id']]); $myInvestments = $stmt->fetchAll(); $totalInvested = 0; foreach ($myInvestments as $inv) { if ($inv['status'] === 'approved') { $totalInvested += $inv['amount']; } } ?> My Portfolio — <?= htmlspecialchars($platformName) ?>
Log Out

Investment Portfolio

Manage your stakes in student-led startups.

Total Invested
£
Startups

No investments yet

Start building your portfolio by discovering startups.

Discover Startups
Invested on

...

Amount
£
Status
View Startup