in my wall of php code this specific piece of code isnt working this is the invalid password error and please contact an admin
<p>This is where i get the issue </p>

<pre><code>$username = $_POST['username'];
$password = $_POST['password'];

$username = mysqli_real_escape_string ($con, $username);
$password = mysqli_real_escape_string ($con, $password);

/* create a prepared statement */
if ($stmt = mysqli_prepare($con, "SELECT password, admin, id FROM members WHERE username=?")) {

    /* bind parameters for markers */
    mysqli_stmt_bind_param($stmt, "s", $username);

    /* execute query */
    mysqli_stmt_execute($stmt);

    /* bind result variables */
    mysqli_stmt_bind_result($stmt, $hash, $admin, $id);

    mysqli_stmt_store_result($stmt);

    if($stmt-&gt;num_rows == 1) {  //To check if the row exists

        if($stmt-&gt;fetch()) {

            if (password_verify($password, $hash)) {

                $sql4 = "UPDATE members SET last_login='".$today."' WHERE id='".$id."'";

                if ($con-&gt;query($sql4) === TRUE) {
                    $_SESSION['username'] = $username;
                    $_SESSION['admin'] = $admin;
                    header("location:staff_portal/");
                } else {
                    echo "Contact Admin as Record can't be updated.";
                }
            {
                echo "Invalid password.";
            }
        }
    } else {

        echo "Username or Password is wrong.";
    }

    /* close statement */
    mysqli_stmt_close($stmt);
}

/* close connection */
mysqli_close($con);
?&gt;
</code></pre>

<p>The "Username or Password is wrong." is working just nothing else </p>