Phil Schwarzmann wrote: > I want to produce the current date & time in a MySQL datetime format > that I can then put into a MySQL database. > > How do I do this? I've tried mktime() and getdate() but it's not > working. > > Thanks!! >
If you want to do it with mysql (i.e. insert the current time) use NOW() (the mysql function) for example INSERT INTO foo (date) VALUES (NOW()) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php