md5加密后,va_dump()返回空的问题
老师您好!请问一下
用md5加密的话,va_dump()的反馈值为null。而不加密的时候就可以正常的返回相应的数组。有什么办法解决吗?不用md5加密的话,是不是未来会对用户的安全性有影响?
代码如下:
<?php require_once '../include.php'; $username = $_POST ['username']; $password = $_POST ['password'] ; // $password = md5 ( $_POST ['password'] ); $verify = $_POST ['verify']; $verify1 = $_SESSION ['verify']; if ($verify == $verify1) { $sql = "select * from midian_admin where username='{$username}'and password='{$password}'"; $res = checkAdmin ( $sql ); var_dump( $res ); } else { echo "<script>alert('验证码错误');</script>"; echo "<script>window.location='login.php';</script>"; }