From 62e2bf48a0a82755e7e43f9b79b0977cd878476f Mon Sep 17 00:00:00 2001 From: arf20 Date: Tue, 19 Mar 2024 18:21:02 +0100 Subject: Send admin order mail --- manageorders.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'manageorders.php') diff --git a/manageorders.php b/manageorders.php index 596b351..9452509 100644 --- a/manageorders.php +++ b/manageorders.php @@ -15,10 +15,10 @@ if ($type != "admin") die("Permission denied."); require_once "config.php"; // Get clients -$sql = "SELECT id, username FROM users WHERE type = ?"; +$sql = "SELECT id, username FROM users WHERE type = 'client'"; $stmt = mysqli_prepare($link, $sql); -mysqli_stmt_bind_param($stmt, "s", $param_type); -$param_type = "client"; +//mysqli_stmt_bind_param($stmt, "s", $param_type); +//$param_type = "client"; mysqli_stmt_execute($stmt); $result = mysqli_stmt_get_result($stmt); $clients = $result->fetch_all(MYSQLI_ASSOC); -- cgit v1.2.3