From d0f16076320a0d49baa2be5bdc82b1d286be3604 Mon Sep 17 00:00:00 2001 From: nkolosnjaj Date: Mon, 24 Jun 2024 09:42:54 +0200 Subject: [PATCH] commit jun 24 --- about.php | 89 +++++++++++++++++++++++++++------------------ admin_panel.php | 7 +++- cases.php | 84 +++++++++++++++++++++++++----------------- contacts.php | 84 +++++++++++++++++++++++++----------------- edit-user.php | 71 +++++++++++++++++++++++------------- news.php | 84 +++++++++++++++++++++++++----------------- people.php | 42 ++++++++++++++------- php/update-user.php | 46 +++++++++++++++++++++++ services.php | 84 +++++++++++++++++++++++++----------------- 9 files changed, 383 insertions(+), 208 deletions(-) create mode 100644 php/update-user.php diff --git a/about.php b/about.php index 58b80c5..4eab2e9 100755 --- a/about.php +++ b/about.php @@ -73,7 +73,7 @@
- - - - - @@ -417,10 +433,11 @@ "; - // Combine key and value for birth date into a formatted string $birthDate = "{$data[$id]['birth_day']}.{$data[$id]['birth_month']}.{$data[$id]['birth_year']}."; echo "{$data[$id]['name']}"; @@ -428,13 +445,12 @@ echo "{$data[$id]['email']}"; echo "$birthDate"; echo ""; - } else { - echo "No data found for ID $id"; } } ?> + diff --git a/php/update-user.php b/php/update-user.php new file mode 100644 index 0000000..3da8edd --- /dev/null +++ b/php/update-user.php @@ -0,0 +1,46 @@ + + alert("You have successfully edit the user!"); + window.location.href = "../admin_panel.php"; + '; + } else { + echo "Error updating user information: " . mysqli_error($con); + } +} +?> diff --git a/services.php b/services.php index b76689b..4c6f91e 100755 --- a/services.php +++ b/services.php @@ -95,20 +95,36 @@ -