[thelist] MySQL datestamp in PHP
Jonathan Cone
JCone at municode.com
Wed Jan 14 14:38:29 CST 2004
<snip>
...I cannot find the correct PHP comand to insert the time of record creation.
</snip>
Ken,
I'm not familiar with MySQL, but can you set the default of the field in the database to be Now() (or some like function, ie date() ). If your datestamp is always going to be the time the record was created then just default the field, don't send any value in from your program and let MySQL handle it.
Hopefully this helps,
Jonathan
More information about the thelist
mailing list