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 '| Run ID | Repository | Rounds | Status | Start Time | End Time | Candidates | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| " . htmlspecialchars($run['run_id']) . " | "; echo "" . htmlspecialchars($run['repository']) . " | "; echo "" . htmlspecialchars($run['rounds']) . " | "; echo "" . htmlspecialchars($run['status']) . " | "; echo "" . htmlspecialchars($run['run_start']) . " | "; echo "" . htmlspecialchars($run['run_end']) . " | "; echo "" . htmlspecialchars($run['candidate_count']) . " | "; echo ""; echo " | ||||||||
";
// 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 '
No candidates found for this run. '; } } catch (PDOException $e) { echo 'Database error fetching candidates: ' . $e->getMessage() . ' ';
}
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.