From 84246dae50e7d16fa2a21bb6e8ca8e0535469aeb Mon Sep 17 00:00:00 2001 From: mauirixxx Date: Sun, 5 Aug 2018 09:12:55 -1000 Subject: [PATCH] made the title selector and last 5 show the maximum rank for the title --- includes/title-select.php | 3 ++- titlemanager.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/includes/title-select.php b/includes/title-select.php index f274625..544cb4f 100644 --- a/includes/title-select.php +++ b/includes/title-select.php @@ -5,7 +5,8 @@ $result = $stmtview->get_result(); while ($row = $result->fetch_assoc()) { $tid = $row['titlenameid']; $tname = $row['titlename']; - echo ''; + $tnr = $row['titlemaxrank']; + echo ''; } $stmtview->close(); ?> \ No newline at end of file diff --git a/titlemanager.php b/titlemanager.php index 90d8919..3ee45a7 100644 --- a/titlemanager.php +++ b/titlemanager.php @@ -50,7 +50,8 @@ if ($_SESSION['admin'] == 1) { $tid = $row['titlenameid']; $tname = $row['titlename']; $ttype = $row['titletype']; - echo '' . $tid . '' . $tname . '' . $ttype . ''; + $tmr = $row['titlemaxrank']; + echo '' . $tid . '' . $tname . ' (' . $tmr . ')' . $ttype . ''; if ($ttype == "0") { echo 'account'; } else if ($ttype == "1") {