Insert FB birthday into Mysql gives NULL

defjam

New Member
I Get NULL when i insert the Birthday and current time in MYSQL\[code\]$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']);\[/code\]SQL\[code\]$queryip = "insert into table (birthday,currenttime) values (".$user['birthday'].','.CURDATE().")"; $resultip = mysql_query($queryip);\[/code\]MYSQL Structure Both the birthday,currenttime fields are Type \[code\]DATE\[/code\]
 
Back
Top