Jump to content

Working with timestamps


Guest elthomo

Recommended Posts

Guest elthomo

In my MYSQL database I have a number of records for each user with different timestamps. But all the information on a user is not in every record. So an older record for a user may contain a value in field called date of birth for example. But a later record for the same user will not.

 

What I want to do is pull the the record and have all the newest information available. It possible to have an a PHP/MYSQL query that will do that or would a better way be to, find a way be to when a user submits new data to take all the data from his previous record and add that to the new record.

 

My site isn't live so I can change things around a bit to get something that works. 

 

I hope you guys can understand what I mean. All info and code gratefully received :-)

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.