PDA

View Full Version : dateline field in thread column- what to insert?


MogKnight
10-25-2005, 09:57 PM
pretty simple question, sorry, I'm kinda new to this.

I tried looking in newthread.php hoping I could just rip the code from there, but the insert statement itself doesn't seem to be there.

I want the time to be "now" basically (whenever the insert is done)

it surprised me that the column does not have a default. ie, if you don't insert anything, it defaults to fill in "now"

Andreas
10-25-2005, 10:23 PM
dateline is UN*X timestamp, eg. the seconds since the epoch (01.01.1970)

http://www.php.net/manual/en/function.time.php