diff --git a/startup_details.php b/startup_details.php index a174a5a..28c4336 100644 --- a/startup_details.php +++ b/startup_details.php @@ -67,8 +67,9 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['action'])) { $title = $_POST['update_title'] ?? ''; $content = $_POST['update_content'] ?? ''; if ($title && $content) { - $stmt = db()->prepare("INSERT INTO startup_updates (startup_id, title, content) VALUES (?, ?, ?)"); - $stmt->execute([$startup_id, $title, $content]); + // FIX: Added founder_id to the query to avoid 500 error + $stmt = db()->prepare("INSERT INTO startup_updates (startup_id, founder_id, title, content) VALUES (?, ?, ?, ?)"); + $stmt->execute([$startup_id, $user_id, $title, $content]); // Notify followers $stmt = db()->prepare("SELECT user_id FROM startup_followers WHERE startup_id = ?"); @@ -200,10 +201,10 @@ if ($canSeeHistory) {
-
+
-
+
@@ -216,14 +217,14 @@ if ($canSeeHistory) {

Founded - +
- + @@ -281,30 +282,45 @@ if ($canSeeHistory) {
-
-

Public Updates

+
+

Public Updates

- +
+ -