query("SELECT * FROM users WHERE user_ID=".$_GET['user_id'].";"); if($res->num_rows >= 1) { $conn->query('UPDATE users SET is_admin = 1 WHERE user_ID = '.$_GET["user_id"].';'); } header("location: ./Users.php"); ?>