From cf434362cab1ec8b1daff446f0991aa003cce966 Mon Sep 17 00:00:00 2001 From: mauirixxx Date: Mon, 6 Aug 2018 13:47:30 -1000 Subject: [PATCH] change post variable to regular variable --- includes/titleranks-add.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/titleranks-add.php b/includes/titleranks-add.php index ec4c1a9..a9655a1 100644 --- a/includes/titleranks-add.php +++ b/includes/titleranks-add.php @@ -15,9 +15,9 @@ if (isset($_SESSION['tid'])) { } if (isset($_SESSION['tr'])) { - $_POST['titlerank'] = $_SESSION['tr'] + 1; + $tr = $_SESSION['tr'] + 1; } else { - $_POST['titlerank'] = 0; + $tr = 0; } $stmtname = $con->prepare("SELECT titlename, titlemaxrank FROM gwtitles WHERE titlenameid = ?"); @@ -26,13 +26,13 @@ $stmtname->execute(); $stmtname->store_result(); $stmtname->bind_result($gwtn, $gwtmr); while ($stmtname->fetch()) { - echo 'Adding rank to title ' . $gwtn . '
It\'s current maximum rank is ' . $gwtmr . '
'; + echo 'Adding rank to title ' . $gwtn . '
The maximum rank achievable in game is ' . $gwtmr . '
'; } $stmtname->free_result(); $stmtname->close(); echo '
'; -echo ''; +echo ''; echo '
Title Rank NameTitle PointsRank Level

'; echo 'Here are the currently associated title ranks, starting with rank 1:
';