To check if a password is correct with PHPs password_verify function you first need to store a previously hashed version of the password, using the password_hash function and then check the plaintext password again that hash.
// Hash the password on user creation and store it in the database.
$hashed = password_hash("my-secret-password", PASSWORD_DEFAULT);
Never store plaintext passwords, look up your users by username or email and fetch the hashed password, and then verify what the passwords match. Also never provide user input directly in a SQL query, either escape it or use prepared statements.
// Fetched hash password and check again provided plaintext version.
$passwordVerify = password_verify($password, $hashedPassword);
If you are using Laravel though, you should use the provided hashing functionality instead.
use Illuminate\Support\Facades\Hash;
// Hash the password on user creation and store it in the database.
$hashed = Hash::make("my-secret-password");
// Fetched hash password and check again provided plaintext version.
$passwordVerify = Hash::check($password, $hashedPassword);