diff --git a/admin/customer_delete.php b/admin/customer_delete.php
new file mode 100644
index 0000000..3b32155
--- /dev/null
+++ b/admin/customer_delete.php
@@ -0,0 +1,20 @@
+prepare('DELETE FROM orders WHERE customer_id = ?');
+$stmt->execute([$_GET['id']]);
+
+$stmt = $pdo->prepare('DELETE FROM customers WHERE id = ?');
+$stmt->execute([$_GET['id']]);
+
+header('Location: customers.php');
+exit;
+?>
\ No newline at end of file
diff --git a/admin/customer_edit.php b/admin/customer_edit.php
new file mode 100644
index 0000000..47d77e3
--- /dev/null
+++ b/admin/customer_edit.php
@@ -0,0 +1,65 @@
+ '',
+ 'name' => '',
+ 'email' => '',
+ 'address' => ''
+];
+$page_title = 'Edit Customer';
+
+if (!isset($_GET['id'])) {
+ echo "
No customer ID specified.
";
+ include 'footer.php';
+ exit;
+}
+
+$stmt = $pdo->prepare('SELECT * FROM customers WHERE id = ?');
+$stmt->execute([$_GET['id']]);
+$customer = $stmt->fetch();
+
+if (!$customer) {
+ echo "Customer not found.
";
+ include 'footer.php';
+ exit;
+}
+
+if ($_SERVER['REQUEST_METHOD'] === 'POST') {
+ $name = $_POST['name'] ?? '';
+ $email = $_POST['email'] ?? '';
+ $address = $_POST['address'] ?? '';
+ $customer_id = $_POST['id'] ?? null;
+
+ if ($customer_id) {
+ $stmt = $pdo->prepare('UPDATE customers SET name = ?, email = ?, address = ? WHERE id = ?');
+ $stmt->execute([$name, $email, $address, $customer_id]);
+ header('Location: customers.php');
+ exit;
+ }
+}
+?>
+
+
+
+
+
+
\ No newline at end of file
diff --git a/admin/customers.php b/admin/customers.php
new file mode 100644
index 0000000..4c96ee9
--- /dev/null
+++ b/admin/customers.php
@@ -0,0 +1,48 @@
+query('SELECT * FROM customers ORDER BY created_at DESC');
+$customers = $stmt->fetchAll();
+?>
+
+
+
Customers
+
+
+
+
+
+ | ID |
+ Name |
+ Email |
+ Address |
+ Joined On |
+ Actions |
+
+
+
+
+
+ | No customers found. |
+
+
+
+
+ |
+ |
+ |
+ |
+ |
+
+ Edit
+ Delete
+ |
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/admin/footer.php b/admin/footer.php
new file mode 100644
index 0000000..f6bec10
--- /dev/null
+++ b/admin/footer.php
@@ -0,0 +1,4 @@
+
+
+