prepare($sql); $stmt->execute([ "id" => $_GET["game"], ]); $game = $stmt->fetch(PDO::FETCH_OBJ); unset($stmt); $title = "Game: " . $game->name; $description = "View details about the " . $game->name . " vote."; } include "partials/head.php"; ?>

prepare( "SELECT * FROM assignments WHERE assignments.game_id = :game_id" ); $stmt->execute([ "game_id" => $_GET["game"], ]); $assignments = $stmt->execute(); $stmt = $db["data"]->prepare( "SELECT * FROM submissions WHERE game_id = :game_id AND member_id = :member_id" ); $stmt->execute([ "game_id" => $_GET["game"], "member_id" => $_SESSION["account"]->id, ]); $submission = $stmt->fetch(PDO::FETCH_OBJ); unset($stmt); ?>

Your Submission

transaction_id !== null; if ( in_array($game->status_id, [ STATUS_ENROLLING, STATUS_REVIEW, ]) && $submission && !$IS_PAID ) { ?> status_id === STATUS_ENROLLING && !$submission ) { ?>

You haven't submitted work to this contest.

Submit to name ?>

status_id !== STATUS_DONE && !$submission) { ?>

You didn't submit a work to this contest.