I Get NULL when i insert the Birthday and current time in MYSQL
$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 Structure
Both the birthday,currenttime fields are Type DATE
You need to request the
birthday_datecolumn, notbirthday, because it’s always in the same format, DDMMYYY.After that, you need to add the following to your INSERT query: