因为我是初学者所以我在这个查询中遇到语法错误.
$sql = "SELECT * FROM registration WHERE email = ".$email." AND password = ".$password."";
解决方法:
请尝试这个,你应该使用单引号.
$sql =“SELECT * FROM registration WHERE email =’”.$email.“’AND password =’”.$password.“’”;