diff --git a/includes/titleranks-add.php b/includes/titleranks-add.php index 6ccef1e..dc6e0fb 100644 --- a/includes/titleranks-add.php +++ b/includes/titleranks-add.php @@ -40,13 +40,18 @@ $stmtname->store_result(); $stmtname->bind_result($gwtn, $gwtmr); while ($stmtname->fetch()) { echo 'Adding rank to title ' . $gwtn . '
The maximum rank achievable in game is ' . $gwtmr . '
'; + if ($tr > $gwtmr) { + echo '
No more ranks can be added!

'; + } else { + echo '
'; + echo ''; + echo '
Title Rank NameTitle PointsRank Level

'; + } } $stmtname->free_result(); $stmtname->close(); -echo '
'; -echo ''; -echo '
Title Rank NameTitle PointsRank Level

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