prepare("SELECT * FROM users WHERE id = ?"); $stmt->execute([$_SESSION['user_id']]); $user = $stmt->fetch(); // Check if profile is complete (e.g., bio or interests) if (empty($user['bio']) && empty($user['interests'])) { if ($user['role'] === 'investor') { header("Location: investor_onboarding.php"); } else { header("Location: founder_onboarding.php"); } exit; } $platformName = defined('PLATFORM_NAME') ? PLATFORM_NAME : 'Gatsby'; // Fetch user's data based on role $myStartups = []; $myInvestments = []; if ($user['role'] === 'founder') { $stmt = db()->prepare("SELECT * FROM startups WHERE founder_id = ? ORDER BY created_at DESC"); $stmt->execute([$_SESSION['user_id']]); $myStartups = $stmt->fetchAll(); } else { $stmt = db()->prepare("SELECT i.*, s.name as startup_name 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(); } ?> Dashboard — <?= htmlspecialchars($platformName) ?>
() Log Out

Welcome, !

Here is your startup ecosystem overview.

My Startups

+ List Startup

You haven't listed any startups yet.

Start Funding Round
• Raising £
£ raised
of £

My Portfolio

Explore Startups

You haven't backed any student projects yet.

Discover Startups
Invested on
£

Latest Network Activity

Discover the latest student innovations and trends.

No new activity in your network. Follow founders or startups to see updates.

Your Profile

Edit Profile

Networking

Find the right people to build the future with.

Find Partners