Update manage_user.php

This commit is contained in:
jakani24
2024-03-09 17:55:42 +01:00
parent e9af4347c2
commit 879ed421d3

View File

@@ -32,6 +32,12 @@ include "perms_functions.php";
<body>
<?php
//load users attributes
$conn = new mysqli($DB_SERVERNAME, $DB_USERNAME, $DB_PASSWORD, $DB_DATABASE);
// Check the connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
$sql="SELECT * FROM users WHERE id=?";
$stmt = $conn->prepare($sql);
$stmt->bind_param("i", htmlspecialchars($_GET["userid"]));