Hi
I have a little problem i'm trying to put a date into mysql but it doesn't seem to work.
I tried many fuctions but I think it's something small i don't know.
$birth = $birthyear . "-" . $birthmonth . "-" . $birthday;
i'm trying to put that into a mysql date value.
INSERT INTO userdata (name,birth,postcode,city,state,country,sexpref,lovestate) ".
"VALUES ('$name',UNIX_TIMESTAMP('$birth'),'$postcode','$city','$state','$country','$sexpref','$lovestate')";
i tried it with UNIX_TIMESTAMP without it.with other functions like DATE() or FROM_TIMESTAMP() but i doesn't work.
I keep getting 0000-00-00 in my database but i'm sure my date format is in Y-m-d.
please help