Jump to content

Basic MySQL help with inserting date in phpMyAdmin


rodangib

Recommended Posts

Hello Guys, On my php form I only got 3 fields to fill in (name, email, message) and in my db I've got ID, name, email, message and DateStamp, the latter in which I'd like to show the date and time (most importantly the date) when the form (therefore the data) was submitted... Using phpMyAdmin, is there a way to do this?? I have also included in my php file  $date = date(d-m-yy);  but is not registering any date... though the data is submitted successfully and stored in the db...

 

Any thoughts please... truly appreciative...

 

Rod

Link to comment
Share on other sites

Andy, thanks...I did that on my php page... however, when I opened phpMyAdmin to check the record, the DateStamp field was filled in just as the other ones (00-00-0000) - All the other fields were filled in correctly, but the date one wasnt... Does it have to do with the php coding or with the database???

 

Regards.

 

PS: I went to your website and read through the tuts... they're awesome.. gonna apply some of that to my apps...

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.