prepare("SELECT * FROM Project WHERE project_id = ?"); $stmt->execute([$_GET['id']]); $project = $stmt->fetch(PDO::FETCH_ASSOC); } catch (PDOException $e) { echo '
Database error: ' . $e->getMessage() . '
'; } } if ($project): ?>

Project:

Project Details

ID:

Description:

Start Date:

Generation Runs
prepare(" SELECT gr.run_id, gr.repository, gr.rounds, gr.status, gr.run_start, gr.run_end, COUNT(c.candidate_id) AS candidate_count FROM Generation_Run gr LEFT JOIN Candidate c ON gr.run_id = c.run_id WHERE gr.project_id = ? GROUP BY gr.run_id ORDER BY gr.run_start DESC "); $stmt_runs->execute([$_GET['id']]); $runs = $stmt_runs->fetchAll(PDO::FETCH_ASSOC); if (count($runs) > 0) { echo '
'; foreach ($runs as $run) { echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; } echo '
Run IDRepositoryRoundsStatusStart TimeEnd TimeCandidates
" . htmlspecialchars($run['run_id']) . "" . htmlspecialchars($run['repository']) . "" . htmlspecialchars($run['rounds']) . "" . htmlspecialchars($run['status']) . "" . htmlspecialchars($run['run_start']) . "" . htmlspecialchars($run['run_end']) . "" . htmlspecialchars($run['candidate_count']) . "
"; // Candidate table will go here try { $stmt_candidates = $pdo->prepare("SELECT candidate_id, smiles_id, estimated_cost, status FROM Candidate WHERE run_id = ?"); $stmt_candidates->execute([$run['run_id']]); $candidates = $stmt_candidates->fetchAll(PDO::FETCH_ASSOC); if (count($candidates) > 0) { echo ''; foreach ($candidates as $candidate) { echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; } echo '
Candidate IDSMILES IDEst. CostStatus
" . htmlspecialchars($candidate['candidate_id']) . "" . htmlspecialchars($candidate['smiles_id']) . "" . htmlspecialchars($candidate['estimated_cost']) . "" . htmlspecialchars($candidate['status']) . "
'; } else { echo '

No candidates found for this run.

'; } } catch (PDOException $e) { echo '
Database error fetching candidates: ' . $e->getMessage() . '
'; } echo "
'; } else { echo '

No generation runs found for this project.

'; } } catch (PDOException $e) { echo '
Database error fetching generation runs: ' . $e->getMessage() . '
'; } ?>
Project not found or ID not provided.