From 6559eb7e2ab2f65a068b6cd84305f4fa17c8056e Mon Sep 17 00:00:00 2001 From: Ainsley Ellis Date: Mon, 13 Jan 2025 22:25:02 -0500 Subject: [PATCH] Add game name to table caption --- www/games/results.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/www/games/results.php b/www/games/results.php index 23cb15c..c456b00 100644 --- a/www/games/results.php +++ b/www/games/results.php @@ -5,8 +5,9 @@ $stmt = $db["data"]->prepare("SELECT name FROM games WHERE id = :id"); $stmt->execute([ "id" => $_GET["game"], ]); +$game_name = $stmt->fetch(PDO::FETCH_COLUMN); -$title = "Results: " . $stmt->fetch(PDO::FETCH_COLUMN); +$title = "Results: $game_name"; $description = "View the results of particular issue's voting."; // use new weights for Winter 2024 and later @@ -144,9 +145,7 @@ include "partials/head.php";
- +
Results for Game Results for
Title