From 4c4b8df824dcd2fd3ac4b8d486181ec87a0f13cd Mon Sep 17 00:00:00 2001 From: arf20 Date: Mon, 18 Mar 2024 17:55:48 +0100 Subject: Add manageorders, fix services edit --- admin.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'admin.php') diff --git a/admin.php b/admin.php index 24bd448..37a69f6 100644 --- a/admin.php +++ b/admin.php @@ -26,6 +26,13 @@ mysqli_stmt_execute($stmt); $result = mysqli_stmt_get_result($stmt); $services = $result->fetch_all(MYSQLI_ASSOC); +// Get services +$sql = "SELECT id, service, name, client FROM orders"; +$stmt = mysqli_prepare($link, $sql); +mysqli_stmt_execute($stmt); +$result = mysqli_stmt_get_result($stmt); +$orders = $result->fetch_all(MYSQLI_ASSOC); + ?> @@ -70,7 +77,14 @@ $services = $result->fetch_all(MYSQLI_ASSOC);

Orders

- + + + \n"; + } + ?> +
serviceinstanceclient
".$order['service']."".$order['name']."".$order['client']."

Tickets

-- cgit v1.2.3