in reply to datetime insertion problem

Pardon me for asking stupid questions, but why aren't you just doing something like:
INSERT INTO mytable (mydatetimefield) values (NOW());
mySQL accepts NOW() input for datetime fields, and there's no need to mess with formatting it yourself.

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.