From eb6f8a216e5e92f9e4e0288cf1654dc1be514cec Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Sat, 28 Feb 2026 20:07:53 +0000 Subject: [PATCH] v35 --- create_startup.php | 2 +- dashboard.php | 8 +++--- discover.php | 30 +++++++++---------- edit_profile.php | 2 +- funding_rounds.php | 12 ++++---- messages.php | 2 +- notifications.php | 2 +- partners.php | 2 +- portfolio.php | 2 +- startup_details.php | 2 +- startups.php | 70 +++++++++++++++------------------------------ 11 files changed, 52 insertions(+), 82 deletions(-) diff --git a/create_startup.php b/create_startup.php index bad0c11..7f9fe4f 100644 --- a/create_startup.php +++ b/create_startup.php @@ -3,7 +3,7 @@ session_start(); require_once 'db/config.php'; require_once 'ai/LocalAIApi.php'; -if (!isset($_SESSION['user_id']) || $_SESSION['user_role'] !== 'founder') { +if (!isset($_SESSION['user_id']) || $_SESSION['role'] !== 'founder') { header('Location: login.php'); exit; } diff --git a/dashboard.php b/dashboard.php index a15acd9..63a5f5c 100644 --- a/dashboard.php +++ b/dashboard.php @@ -124,7 +124,7 @@ function number_get_formatted($num) { My Startups Find Partners - Browse StartupsFunding Rounds + Founding Rounds Portfolio Discovery Hub @@ -212,14 +212,14 @@ function number_get_formatted($num) {

Portfolio Overview

- Find New Deals + Find New Deals

Start backing the next generation of founders.

- Start Investing + Start Investing
@@ -304,4 +304,4 @@ function number_get_formatted($num) { - + \ No newline at end of file diff --git a/discover.php b/discover.php index f1ac3c6..020b705 100644 --- a/discover.php +++ b/discover.php @@ -37,9 +37,9 @@ $stmt = db()->query(" "); $mostFunded = $stmt->fetchAll(); -// General Browse +// General Browse - ONLY Founding Rounds (Active) $q = $_GET['q'] ?? ''; -$where = "u.onboarding_completed = 1"; +$where = "fr.status = 'Active'"; $params = []; if ($q) { $where .= " AND (s.name LIKE ? OR s.description LIKE ? OR s.industry LIKE ?)"; @@ -49,11 +49,12 @@ if ($q) { } $stmt = db()->prepare(" - SELECT s.*, u.full_name as founder_name - FROM startups s + SELECT s.*, u.full_name as founder_name, fr.funding_goal as active_goal, fr.funding_raised as active_raised + FROM funding_rounds fr + JOIN startups s ON fr.startup_id = s.id JOIN users u ON s.founder_id = u.id WHERE $where - ORDER BY s.created_at DESC + ORDER BY fr.created_at DESC LIMIT 12 "); $stmt->execute($params); @@ -98,14 +99,9 @@ $browseStartups = $stmt->fetchAll();
@@ -164,9 +160,9 @@ $browseStartups = $stmt->fetchAll();
-

Browse All Startups

+

Founding Rounds

- +
@@ -190,7 +186,7 @@ $browseStartups = $stmt->fetchAll(); - £ + £
@@ -209,4 +205,4 @@ $browseStartups = $stmt->fetchAll(); - \ No newline at end of file + diff --git a/edit_profile.php b/edit_profile.php index 9b0a2dd..35b4549 100644 --- a/edit_profile.php +++ b/edit_profile.php @@ -78,7 +78,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { My Startups Find Partners - Browse StartupsFunding Rounds + Founding Rounds Portfolio Discovery Hub diff --git a/funding_rounds.php b/funding_rounds.php index 9ccc26a..f728bfe 100644 --- a/funding_rounds.php +++ b/funding_rounds.php @@ -35,7 +35,7 @@ $activeRounds = $stmt->fetchAll(); - Active Funding Rounds — <?= htmlspecialchars($platformName) ?> + Founding Rounds — <?= htmlspecialchars($platformName) ?> @@ -51,8 +51,7 @@ $activeRounds = $stmt->fetchAll();