prepare($sql); $query->bindValue(':login', $login, PDO::PARAM_STR); $query->bindValue(':description', $description, PDO::PARAM_STR); $query->bindValue(':role', $role, PDO::PARAM_INT); $query->bindValue(':id', $id, PDO::PARAM_INT); $query->execute(); header('Location: index.php'); } } if (isset($_GET['id']) && !empty($_GET['id'])) { $id = strip_tags($_GET['id']); $sql = "SELECT * FROM `users` WHERE `id`=:id;"; $query = $db->prepare($sql); $query->bindValue(':id', $id, PDO::PARAM_INT); $query->execute(); $result = $query->fetch(); } require_once('close.php'); ?>