Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试从 base_64 编码的 mysql 表中访问数据,但我收到警告: Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in......
Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in......
当我尝试使用 md5 访问 md5 散列数据时,它工作正常。我想不通。这是代码:
("SELECT * FROM users WHERE email= base64_decode('$email')");
可能是引号搞砸了。尝试这个:
("SELECT * FROM users WHERE email = '".base64_decode($email)."'");
这可能是因为您没有在base64_decode这里调用 php 函数,只是将字符串传递给 mysqld。顺便说一句md5,mysql中有一个函数,所以这对你有用。
base64_decode
md5