I have 1 problem to fix with my facebook registration plugin for a website.
im trying to insert the birthday into the db, facebook format is dd-mm-yyyy…im getting a result 0000-00-00,
<code>
$sql = "INSERT INTO users(facebook,
email,
username,
country,
gender,
dob,
password,
profile,
activated,
ip)
VALUES(?, ?, ?, ?, ?, ?, ?, 'images/default_profile.png', 1, ?
$data = array($fbId, $register['email'],
$register['username'],
$location,
$register['gender'],
$register['birthday'],
md5($register['password']),
$_SERVER['REMOTE_ADDR']
);
any help would be great, thanks
You need to correctly format the date. In one of my previous tutorials, I used something like this (hopefully it’s still working):