From 7f8b539e04d4ae0821f038413c86ac7117e22a0f Mon Sep 17 00:00:00 2001 From: Yarcio Date: Sun, 15 Jun 2025 22:44:20 +0200 Subject: [PATCH] iforgor --- rank/index.php | 1 + score/tests/index.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/rank/index.php b/rank/index.php index a90086c..b1d6bea 100644 --- a/rank/index.php +++ b/rank/index.php @@ -17,6 +17,7 @@ include $_SERVER["DOCUMENT_ROOT"] . "/php/pages.php";

Ranking

+

Powrót

prepare("SELECT correctAnswers, UID, testTime FROM tests WHERE rank = 1 ORDER BY correctAnswers DESC, testTime ASC"); diff --git a/score/tests/index.php b/score/tests/index.php index 5ffa4ed..f18ee57 100644 --- a/score/tests/index.php +++ b/score/tests/index.php @@ -33,6 +33,7 @@ redirectLogged(); $stmt->execute(); $stmt->store_result(); $stmt->bind_result($QID, $answeredChar, $correct); + echo "

Powrót

"; echo ""; $i = 0; while ($stmt->fetch()) { @@ -54,6 +55,7 @@ redirectLogged(); $stmt->close(); echo "
NrPytanieOdpowiedziTwoja odpowiedźPrawidłowa?Prawidłowa odpowiedź

Powrót

"; } else { + echo "

Powrót

"; $stmt = $conn->prepare("SELECT TID, rank, correctAnswers, testLength, testTime FROM tests WHERE UID = ?"); $stmt->bind_param("i", $_SESSION["UID"]); $stmt->bind_result($TID, $rank, $correctAnswers, $testLength, $testTime);