Trying to use BCRYPT
<p>My registration page uses BCRYPT and hashes the password into the database perfectly, however I am struggling to verify the password in the login page.</p>

<p>Below is my code and my attempt of verifying the password, however when running it I encounter HTTP ERROR 500.</p>

<pre><code>$sql="SELECT * FROM Users WHERE Username='$username'";

if (!$result=mysqli_query($con,$sql))

{
   die('Error: ' . mysqli_error($con));
}
else
{   
   $count=mysqli_num_rows($result); 
}

if($count==1)
{   
   $hash = .$row['Password'];   
   if (password_verify($passfromform, $hash)) 
    {
       echo 'Password is valid!';
    } 
    else
    {
       echo 'Invalid password.';
    }   
}

else 
{
   header("location:User Login.html");
}
</code></pre>

<p>Any help would really be appreciated as it's giving me a headache now trying to solve my stupid mistake. Thanks</p>