From 9a120ef6f7ffeb7bf8c3d92d81c8bf1547d16b7b Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Mon, 15 Dec 2025 21:56:15 +0000 Subject: [PATCH] checkpoint 1 --- candidate.php | 11 ++++++++++- db/schema.sql | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/candidate.php b/candidate.php index 6c81254..bf78c45 100644 --- a/candidate.php +++ b/candidate.php @@ -114,6 +114,7 @@ ?>

Candidate:

+ Back to Project
@@ -211,6 +212,7 @@ $stmt_sample_wells = $pdo->prepare(" SELECT sw.sample_id, + sw.name, wp.Temperature, wp.incubation_start, wp.incubation_end, @@ -257,7 +259,12 @@ c.candidate_id = ? "); $stmt_sample_wells->execute([$_GET['id']]); - $sample_wells = $stmt_sample_wells->fetchAll(PDO::FETCH_GROUP | PDO::FETCH_ASSOC); + $sample_wells_result = $stmt_sample_wells->fetchAll(PDO::FETCH_ASSOC); + + $sample_wells = []; + foreach ($sample_wells_result as $row) { + $sample_wells[$row['sample_id']][] = $row; + } if ($sample_wells && count($sample_wells) > 0): ?> @@ -266,6 +273,7 @@ Sample ID + Name Composition Incubation PXRD Characterization @@ -280,6 +288,7 @@ ?> +