Jump to content

timestamp in my db


bryanptcs

Recommended Posts

I am wanting a timestamp to be placed into my db when the form is submitted, below is my php code for trying to do this:

[code]
$timestamp = date('Y d m h:i:s');
echo $timestamp;
$sql  = "insert into upload SET id='$id' , business='$business', address='$address', city='$city', contact='$contact', salesrep='$salesrep', phone='$phone', email='$email', name='$fileName', time='$timestamp' ";
[/code]
Link to comment
https://forums.phpfreaks.com/topic/31274-timestamp-in-my-db/
Share on other sites

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.