query($tableCheckQuery)->num_rows > 0; if (!$tableExists) { header("Location: domains.php"); exit; } // Get domain descriptions $domainDescriptions = getDomainDescriptions($conn); $domainDescription = isset($domainDescriptions[$domainNumber]) ? $domainDescriptions[$domainNumber] : "Domain $domainNumber"; // Get the correct project name field for this domain $projectNameField = getProjectNameField($conn, $domainTable); // Get projects for this domain $projectsQuery = "SELECT * FROM $domainTable ORDER BY Project_ID"; $projectsResult = $conn->query($projectsQuery); // Include header include 'includes/header.php'; ?>

num_rows > 0): ?> fetch_assoc()): ?>

100) ? htmlspecialchars(substr($project['Description'], 0, 100)) . '...' : htmlspecialchars($project['Description']); ?> No description available

No projects found in this domain. Add a project to get started.
close(); ?>