Click here to Skip to main content
16,015,755 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi, i have a little problem in my code...

PHP
include_once("dbconnection.php");

$email = $_POST["mail"];
$hashedpass =  password_hash($_POST["password"],PASSWORD_DEFAULT);

$loginquery = $conn->prepare("SELECT mail,password FROM register_form          WHERE mail= :email and password= :hashedpass ");

$loginquery->bindParam(':email',$email,PDO::PARAM_STR);
$loginquery->bindParam(':hashedpass',$hashedpass,PDO::PARAM_STR);
$loginquery->execute();

$result = $loginquery->fetchAll();
print_r($result);


My result array return empty, what is the problem in here? Thank you for your answers...
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900