Jump to content

Date help...pulling info from db and seperating into 3 fields


Recommended Posts

hey guys

 

I have a form that when submitted, I have 2 drop downs, and 1 text field the 2 drop downs are

contacted_month

contacted_day

 

and the text field is

contacted_year

 

then I submit all this info to my database, however I store it into 1 field called

 

last_contacted

 

now im making a page so "edit client info", but am having a hard time figuring out how to edit this since I have the drop downs and text field and am trying to put a value in it which would be the date, but I need to seperate it into the 3 fields. I know I have to do an array of some sort, but how would it look? Also, would you recomend storing it as a timestamp in the database, an int, or just varChar??? sorry for the newbie question...still learning but appreciate all the help.

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.