From d1ae80bb6806e1c7daed1553130e9f44c8c305f6 Mon Sep 17 00:00:00 2001 From: arf20 Date: Sat, 16 Mar 2024 18:10:59 +0100 Subject: User deletion --- manageusers.php | 82 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 manageusers.php (limited to 'manageusers.php') diff --git a/manageusers.php b/manageusers.php new file mode 100644 index 0000000..30750df --- /dev/null +++ b/manageusers.php @@ -0,0 +1,82 @@ +fetch_all(MYSQLI_ASSOC); + +// actions +// delete entry +if (isset($_GET["del"])) { + $sql = "DELETE FROM users WHERE id = ?"; + $stmt = mysqli_prepare($link, $sql); + mysqli_stmt_bind_param($stmt, "s", $param_id); + $param_id = $_GET["del"]; + if (!mysqli_stmt_execute($stmt) || mysqli_stmt_affected_rows($stmt) != 1) { + echo "SQL error."; + } else header("location: ".$_SERVER['SCRIPT_NAME']); +} + +?> + + + + + + + ARFNET CSTIMS + + +
+ ARFNET +
+
+
+
+
+

ARFNET Client Service Ticket and Invoice Management System

+

panel

+ +

Users

+ + + " + ."" + ."" + ."" + ."" + ."" + ."" + ."" + ."\n"; + } + ?> +
iduserpasswordemailverifycodetyperegdatestatusaction
".$user['id']."".$user['username']."".$user['password']."".$user['email']."".$user['verifycode']."".$user['type']."".$user['regdate']."".$user['status']."del edit
+ +
+ +
+
+ + + -- cgit v1.2.3