当我在 MYSQL 中插入生日和当前时间时,我得到 NULL
$graph_url = "https://graph.facebook.com/me?access_token=".$params['access_token']."&format=json&fields=birthday";
$user = json_decode(file_get_contents($graph_url),true);
echo("birthday is " . $user['birthday']);
SQL
$queryip = "insert into table (birthday,currenttime) values (".$user['birthday'].','.CURDATE().")";
$resultip = mysql_query($queryip);
MYSQL结构生日,当前时间字段都是类型DATE