first make sure you have mysql database, if you don't have mysql on your website, you can visit our friends at www.webune.com and signup with one of their plans.
so, to insert the time and date inot my tables i use this sql query:
Code:
$sql = "INSERT INTO table-name(field_name) values (now())'";
if is do the query above, the system will enter a time stamp of "2007-04-04 21:48:37" which is right now..
you also have to make sure that you create the field correctly. you can use this table as and example:
Code:
CREATE TABLE `post`
(
`post_date` datetime NOT NULL default '0000-00-00 00:00:00',
)
(
`post_date` datetime NOT NULL default '0000-00-00 00:00:00',
)
I find that this is the best and easy way to inster the time and day of the current (present) year month day hour and seconds of today.
