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();