From 4e5eb922cbba3f9fa8ecbcbe2f4f3cc89f2c11b2 Mon Sep 17 00:00:00 2001 From: mauirixxx Date: Tue, 7 Aug 2018 12:50:07 -1000 Subject: [PATCH] added support for actually update title ranks --- titlemanager.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/titlemanager.php b/titlemanager.php index 537cc6f..e9c444c 100644 --- a/titlemanager.php +++ b/titlemanager.php @@ -38,6 +38,9 @@ if ($_SESSION['admin'] == 1) { } else if ($_POST['title'] == "modsubtitle") { // included file contains all code to edit a title rank include_once ('includes/titleranks-editor.php'); + } else if ($_POST['title'] == "updatesubtitle") { + // this sectionupdates modified title ranks in the database, or deletes them + include_once ('includes/titleranks-update.php'); } } else { unset($_SESSION['tid']); @@ -50,9 +53,9 @@ if ($_SESSION['admin'] == 1) { include ('includes/title-select.php'); echo '

'; // now to view the last 5 title entries in the database - echo 'Here is the last 5 titles entered into the database, newest entry is on top:
'; + echo 'Here is the last 15 titles entered into the database, newest entry is on top:
'; echo ''; - $stmtview = $con->prepare("SELECT * FROM gwtitles ORDER BY titlenameid DESC LIMIT 5"); + $stmtview = $con->prepare("SELECT * FROM gwtitles ORDER BY titlenameid DESC LIMIT 15"); $stmtview->execute(); $result = $stmtview->get_result(); while ($row = $result->fetch_assoc()) {
titleidtitlenametitletypetitletype