From 15db593bdfcc68f00d8acf54475bf27a1c35a540 Mon Sep 17 00:00:00 2001 From: mauirixxx Date: Wed, 8 Aug 2018 12:20:20 -1000 Subject: [PATCH] removed debug code --- includes/titleranks-update.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/includes/titleranks-update.php b/includes/titleranks-update.php index 5871e93..427cce6 100644 --- a/includes/titleranks-update.php +++ b/includes/titleranks-update.php @@ -7,11 +7,6 @@ mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT); # delete the above when shit finally works if (isset($_POST['delsubtitle'])) { - echo 'the post delsubtitle might be an array??
'; - echo '
';
-	print_r($_POST['delsubtitle']);
-	print_r($_POST['stnameid']);
-	echo '
'; if ($delst = $con->prepare("DELETE FROM gwsubtitles WHERE titlenameid = ? AND stnameid = ?")) { $delst->bind_param("ii", $tnameid, $stnameid); for ($i = 0; $i < count($_POST['delsubtitle']); $i++) { @@ -22,7 +17,7 @@ if (isset($_POST['delsubtitle'])) { $delst->close(); } echo 'Title rank(s) have been deleted, redirecting!'; - //header ("Refresh:1; url=titlemanager.php"); + header ("Refresh:1; url=titlemanager.php"); } else { // this section updates the title name if ($upd = $con->prepare("UPDATE gwsubtitles SET stname = ?, stpoints = ?, strank = ? WHERE titlenameid = ? AND stnameid = ?")) { @@ -40,5 +35,4 @@ if (isset($_POST['delsubtitle'])) { echo 'Title rank(s) updated, redirecting!'; header ("Refresh:1; url=titlemanager.php"); } -echo 'Return to title manager'; ?> \ No newline at end of file