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
+
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 "";
echo "Nr | Pytanie | Odpowiedzi | Twoja odpowiedź | Prawidłowa? | Prawidłowa odpowiedź |
";
$i = 0;
while ($stmt->fetch()) {
@@ -54,6 +55,7 @@ redirectLogged();
$stmt->close();
echo "
";
} else {
+ echo "";
$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);