From e3ab5183cb651f246090a1ae7d1258bc7136ca35 Mon Sep 17 00:00:00 2001 From: Thies Mueller Date: Sun, 10 Jan 2021 15:00:17 +0100 Subject: [PATCH] refinded query --- adminarea_useradmin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/adminarea_useradmin.php b/adminarea_useradmin.php index c2a4a6d..8904608 100644 --- a/adminarea_useradmin.php +++ b/adminarea_useradmin.php @@ -28,10 +28,10 @@ if($_SESSION['isadmin'] == 0) { } echo ''; - +$conn = new mysqli($mysqlhost, $dbuser, $dbpass, $dbname); // Run the query. -$result = $pdo->query("SELECT * FROM table LIMIT 10"); +$result = $conn->query("SELECT * FROM users; LIMIT 10"); // Get the result in to a more usable format. $query = array();