From 4808471bfb8ae5997f28b74945a6e3ede84fcaa5 Mon Sep 17 00:00:00 2001 From: Kar l5 Date: Fri, 3 May 2024 01:32:00 +0530 Subject: [PATCH] editUser state api --- .gitignore | 1 + .hta_slug/admin/edit-user.php | 17 +++++++++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d9f9d47 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.hta_config/ \ No newline at end of file diff --git a/.hta_slug/admin/edit-user.php b/.hta_slug/admin/edit-user.php index bb06789..f89826a 100644 --- a/.hta_slug/admin/edit-user.php +++ b/.hta_slug/admin/edit-user.php @@ -49,7 +49,7 @@ $stmt->bindParam(':pass', $password); $stmt->bindParam(':id', $user_id); $stmt->execute(); - echo "Record Updated successfully"; + echo ''; } catch(PDOException $e) { echo "Error: " . $e->getMessage(); } @@ -66,7 +66,7 @@ if ($num_rows >= 1) { foreach($rows as $row){?>
-
+

Edit User

@@ -184,6 +184,19 @@ ?> + +