php mysql timestamp help?

piki to to loss

New member
ok i'm havign trouble filling in my timestamp field.
it keeps showing up as 0000-00-00 00:00:00
how do i insert that current time of the user when they submit there id time in?
like
INSERT VALUES INTO table ('$time')
what var/function can i use to get this value that will fit in with the timestamp format.
not it's set to not null.

thanks for any help!
ok i found out how to set a date.
$metime=date("Y:d:m:H:m:s",time());

but it give me the date and time of
(i converted it from the YYYY:MM:DD HH:MM:SS)
Dec 31 1969, 19:00 pm

why is it telling me the night before the 70's?
 
Back
Top