PDO bindParam()问题...... [英] PDO bindParam() problem...

查看:59
本文介绍了PDO bindParam()问题......的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的代码中有一点问题...



Hi, i have a little problem in my code...

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...

推荐答案

email =
email =


_POST [ mail];
_POST["mail"];


hashedpass = password_hash(
hashedpass = password_hash(


这篇关于PDO bindParam()问题......的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆