|
i'm lost on what exactly your problem is. if there is still a problem, demonstrate a query you use to insert the datetime field.
you've already demonstrated how you get it out. for getting it out, i prefer the unix_timestamp method because PHP has more date formatting options than MySQL.
some go as far as to just store the unix time stamp in an int(14) field. i prefer to keep it in a datetime format in the database so i can utilize the MySQL date functions in my queries.
|