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

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

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.