出于某种原因,我的 user_id 作为 2147483647 而不是实际的 user_id 存储在我的数据库中。有谁知道为什么会这样?
if ($_REQUEST) {
$response = parse_signed_request($_REQUEST['signed_request'],
FACEBOOK_SECRET);
$name = $response["registration"]["name"];
$email = $response["registration"]["email"];
$facebookID = $response["user_id"];
$connect = mysqli_connect($db_host,$db_user,$db_pass);
mysqli_select_db($connect,$db_name);
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
$result = mysqli_query($connect, "INSERT INTO User (U_id, U_name, U_email) VALUES ('$facebookID', '$name', '$email')") or die (mysqli_error($connect));