Jump to content

Simple question: passing current date to mysql


asunwatcher

Recommended Posts

Hi there,

 

I've just started learning php and mysql today. I'm putting things together in dreamweaver and everything is running smoothly (ish).

 

I've got a form written in php that sends data to a database. All fine.

 

I need to send the time of submission to the database. I've put in a hidden field, what code should I use to set the field value to a mysql field of type DATETIME?

 

Cheers.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.