2017-04-15 22 views

答えて

0
Yes,Add authprovider field in your table. 
When any user login with google at first time then store google in your database. 
After than when user Login again then use query like this: 

$query = "SELECT authprovider,email FROM tbl_users WHERE authprovider='$authprovider' AND email='$email'"; 
$exe = mysqli_query($conn,$query); 
$check = mysqli_num_rows($exe); 
if($check == 1){ 
    //already registered 
} 
else{ 
//new register 
} 
関連する問題