title: Why is the password on the hash does not match?
body: <p>I am using password_verify to verify the hash but it is not doing what is expected, please help me with my code</p>
  
  <p>I've tried searching for answers but can't find one</p>
  
  <pre><code>//Putting the hashed passwords to the data base
  
  
   session_start();
      require('connect.php');
      $hashedPwd = password_hash($dbcon, PASSWORD_DEFAULT);
      $con = mysqli_connect("****", "***", "***", "***"); 
  
      $dbcon = $_POST['dbcon'];
      mysqli_query($con,"INSERT INTO `epiz_22821280_codes`.`auth_code` 
      (`passcode`) VALUES ('$hashedPwd');");
  
  //Password test if I inserted 123456 on dbcon POST field
  
  
  
  session_start();
      require('connect.php');
  
      $input = "123456";
      $hashedPwdInDb = password_hash("$input", PASSWORD_DEFAULT);
      $query = "SELECT * FROM `auth_code` WHERE passcode='$input' ";
      $result = mysql_query($query);
  
      $hash = "$query";
      if(password_verify($input, $hash )){
      print('success');
  
      } else  {
      print('not success');
  
      }
  </code></pre>
  
  <p>I'm not getting the same reseult as he hashed passwords</p>