I am trying to get the password of a specified username, assign it to a PHP variable, and then print it. Here's the code for it -
$user = $_POST["uname"];
$pass = mysqli_query($con, "SELECT pass FROM users WHERE username = '$user'");
$result = mysqli_fetch_array($pass);
$specific = $result['pass'];
echo $specific;
The problem is that nothing is being printed at all! Even no error. What do I do?