这是我的代码.我正在检查登录/注册系统中是否存在用户:
public function userExist($email){
$stmt = $this->conn->prepare("select email from users where email= ?");
$stmt->bind_param("s", $email);
$stmt->execute();
$stmt->store_result();
if($stmt->num_rows>0){
}
else{
}
}
Run Code Online (Sandbox Code Playgroud)
我可以使用get_result而不是store_result()吗?