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
}
?>
Enter Golf Score
Enter Round Score
Round Totals
To Par:E
Score:0
Putts:0
Penalties:0
Sand Lies:0
Success
Your score has been submitted successfully! (Client-side demo)