Php -> Datetime ->MySql

wxdqz

New Member
Hi,

If anyone could help I'd be very grateful,

I have got a mysql database 'db', containing a table 't', within which I want to insert a new row - whereby one of the columns is of type datetime. This will be used to store the current date and time.

So how would I structure a php command to insert a new row, specifying the current date and time into the 1st column (which is of type datetime)?

Cheers for any help!

James.
 
Back
Top