prepare("INSERT INTO projects (title, description) VALUES (?, ?)"); $stmt->execute([$title, $description]); $_SESSION['message'] = 'Project created successfully!'; header("Location: projects.php"); exit; } catch (PDOException $e) { $error = "Database error: " . $e->getMessage(); } } } include 'includes/header.php'; ?>

Create a New Project

Cancel