My Startups
Manage and track your ventures.
prepare("SELECT * FROM users WHERE id = ?"); $stmt->execute([$user_id]); $user = $stmt->fetch(); if (!$user) { header('Location: login.php'); exit; } $platformName = defined('PLATFORM_NAME') ? PLATFORM_NAME : 'Gatsby'; if ($user['role'] !== 'founder') { header('Location: funding_rounds.php'); exit; } // Fetch Trending Startups based on total funding raised $stmt = db()->prepare(" SELECT id FROM startups ORDER BY funding_raised DESC LIMIT 10 "); $stmt->execute(); $trendingIds = $stmt->fetchAll(PDO::FETCH_COLUMN); $stmt = db()->prepare(" SELECT s.*, fr.id as round_id, fr.funding_goal as active_goal, fr.funding_raised as active_raised, fr.status as round_status FROM startups s LEFT JOIN funding_rounds fr ON s.id = fr.startup_id AND fr.status = 'Active' WHERE s.founder_id = ? ORDER BY s.created_at DESC "); $stmt->execute([$user_id]); $myStartups = $stmt->fetchAll(); ?>
Manage and track your ventures.