$query = "SELECT username, email, password, salt
          FROM tbl_memembers
          WHERE (username = $resetuser) OR (email = $resetuser)";


当我知道存在与输入的那些匹配的事实时,这将不断返回数据库中没有任何内容($ resetuser = $ _POST来自上一页)

最佳答案

尝试使用此查询

 $query = "SELECT username, email, password, salt
          FROM tbl_memembers
          WHERE username = '$resetuser'  email = '$resetuser' ";

关于mysql - mysql语句有问题,其中和/或基于用户输入,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/22908195/

10-13 06:53