diff --git a/add_score.php b/add_score.php index 896bf70..89df036 100644 --- a/add_score.php +++ b/add_score.php @@ -1,4 +1,16 @@ +query("SELECT id, name FROM courses ORDER BY name"); + $courses = $stmt->fetchAll(); +} catch (PDOException $e) { + $courses = []; + // Silently fail, the JS will handle the empty state +} +?>
@@ -36,9 +48,33 @@