$text), array("id" => $id)); if ($fediEnabled) { include 'fedi.php'; } header("Location: index.php?responded=1&pw={$adminPassword}"); } $query = " SELECT * FROM data WHERE id = {$id}; "; $qresp = pg_query($db, $query); $arr = pg_fetch_array($qresp); $properTitle = $pageTitle . " – respond to question #" . $id; include '../boilerplate/pageStart.php'; echo(""); if ($arr["ispublic"] === "f") { echo("

{$pageTitle} – no such question exists

"); echo("(go back?)"); http_response_code(404); } else { echo("

{$pageTitle} – question number " . $arr["id"] . "

"); echo("(go back?)"); echo("
"); if ($arr["iscwed"] === "t") { echo("

cw: " . htmlspecialchars($arr["cw"]) . "

"); } echo(htmlspecialchars($arr["text"])); echo("
" . $arr["time"] . "
"); if ($_GET["responded"] == 1) { echo("
" . htmlspecialchars($arr["responsetext"]) . ""); echo("
" . $arr["responsetime"] . "
"); echo("

enter your edits

"); } else { echo("

enter a response

"); } $respTxt = htmlspecialchars($arr["responsetext"]); echo("

"); } ?>