Im into php and making a login script everything works but I hashed the passwords in Bcrypt in the signup.php, so im having problem input password make it match so i researched VERIFY_PASSWORD but how i implement it on my own script? to clarify if i just copy the hash from table as password it works but i want it to work normal input _POST password, ani input is welcome
login.php
<?php
ini_set('display_errors', 'On');
error_reporting(E_ALL | E_STRICT);
require 'database.php';
$username = $_POST["username"];
$password = $_POST["password"];
$sql = "SELECT * FROM table2 WHERE username = '".$username."' AND password = '$password'";
$result = $conn->query($sql);
$result->execute();
$count = $result->fetchcolumn();
var_dump($result);///if($result === FALSE) {
if($count == 1 ){
echo"login";
header("location:login4.php");
} else { var_dump($count);
echo"logout";
} // die(mysql_error()); // TODO: better error handling
///}
///while($row = mysql_fetch_array($result))
///{
/// echo $row['username'];
///}
///if(!$row = mysqli_fetch_assoc($result)) {
/// echo "dd";
//else {
// echo "logged in";
?>
<html>
<form action="login3.php" method="post">
<input type="text" name="username">
<input type="password" name="password">
<button type="submit" name="submit">login</button>
</html>