$result = mysqli_query($link, "SELECT * FROM users WHERE username = {$d}");
SELECT * FROM users WHERE username = "$_GET['d']"