diff --git a/includes/titleranks-add.php b/includes/titleranks-add.php index 324f7d8..ec4c1a9 100644 --- a/includes/titleranks-add.php +++ b/includes/titleranks-add.php @@ -14,6 +14,12 @@ if (isset($_SESSION['tid'])) { $_POST['tid'] = $_SESSION['tid']; } +if (isset($_SESSION['tr'])) { + $_POST['titlerank'] = $_SESSION['tr'] + 1; +} else { + $_POST['titlerank'] = 0; +} + $stmtname = $con->prepare("SELECT titlename, titlemaxrank FROM gwtitles WHERE titlenameid = ?"); $stmtname->bind_param("i", $_POST['tid']); $stmtname->execute(); @@ -26,7 +32,7 @@ $stmtname->free_result(); $stmtname->close(); echo '
'; echo 'Here are the currently associated title ranks, starting with rank 1: