Skip to main content
Participant
March 29, 2008
Question

Date Stamp MySql-PHP

  • March 29, 2008
  • 1 reply
  • 423 views
Hi All:

I have a form that I using to upload my portfolio using the php insert record function of Dreamweaver. How can I make it add the date stamp using dreamweaver? Is the a piece of code some can provide? My thought was add some kinda of hidden field and do something with that. Any help would be appreciated.
This topic has been closed for replies.

1 reply

Inspiring
March 29, 2008
.oO(cupaball)

> I have a form that I using to upload my portfolio using the php insert record
>function of Dreamweaver. How can I make it add the date stamp using
>dreamweaver? Is the a piece of code some can provide? My thought was add some
>kinda of hidden field and do something with that. Any help would be appreciated.

No need for a hidden field. You can directly insert the current date in
your SQL query with the NOW() function. The final query should then look
like this:

INSERT INTO yourTable (dateField, ...)
VALUES (NOW(), ...)

Micha
cupaballAuthor
Participant
March 29, 2008
Great! Where does that go in all this Dreamweaver code?