prepare("SELECT name FROM games WHERE id = :id"); $stmt->execute([ "id" => $_GET["game"], ]); $title = "Results: " . $stmt->fetch(PDO::FETCH_COLUMN); $description = "View the results of particular issue's voting."; $stmt = $db["data"] ->prepare('SELECT submissions.id AS id, submissions.hash, members.name, members.handle, CASE WHEN name_is_public = 1 AND name IS NOT NULL THEN name ELSE CONCAT("Member ", submissions.member_id) END AS author, CASE WHEN doc_is_public = 1 THEN title ELSE CONCAT("Entry ", submissions.id) END AS title , doc_is_public, name_is_public, score_round_1, rank_round_1, score_round_2, rank_round_2, score_round_3, rank_round_3, rank_final, votes_round_1, votes_round_2, votes_round_3, num_assignments_round_1, num_assignments_round_2, num_assignments_round_3 FROM submissions JOIN members ON submissions.member_id = members.id WHERE submissions.game_id = :id AND rank_final IS NOT NULL AND submissions.transaction_id IS NOT NULL ORDER BY rank_final ASC'); $results = $stmt->execute([ "id" => $_GET["game"], ]); $row = $stmt->fetch(); if (!$row) { $title = "No Results Found"; $description = "We couldn't find the game results you requested."; } include "partials/head.php"; ?>

> fetch()); ?>
Results for Game
Title Author Score Rank
Round One Round Two Round Three Round One Round Two Round Three
$doc_title" : $doc_title ?> (disqualified) $author" : $author ?> > > >