Add game name to table caption
This commit is contained in:
parent
4926873e42
commit
6559eb7e2a
1 changed files with 3 additions and 4 deletions
|
|
@ -5,8 +5,9 @@ $stmt = $db["data"]->prepare("SELECT name FROM games WHERE id = :id");
|
||||||
$stmt->execute([
|
$stmt->execute([
|
||||||
"id" => $_GET["game"],
|
"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.";
|
$description = "View the results of particular issue's voting.";
|
||||||
|
|
||||||
// use new weights for Winter 2024 and later
|
// use new weights for Winter 2024 and later
|
||||||
|
|
@ -144,9 +145,7 @@ include "partials/head.php";
|
||||||
<!-- <p><a href="/resulthowto.html">How to Read the Results</a></p> -->
|
<!-- <p><a href="/resulthowto.html">How to Read the Results</a></p> -->
|
||||||
<div role="region" aria-labelledby="results-caption" tabindex="0">
|
<div role="region" aria-labelledby="results-caption" tabindex="0">
|
||||||
<table>
|
<table>
|
||||||
<caption id="results-caption">Results for Game <?= $_GET[
|
<caption id="results-caption">Results for <?= $game_name ?></caption>
|
||||||
"game"
|
|
||||||
] ?></caption>
|
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="col" rowspan="3">Title</th>
|
<th scope="col" rowspan="3">Title</th>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue