SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    May 2011
    Posts
    191
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Storing a timestamp

    Good day,

    I am working in a website with forms and buttons.
    How can I store in a database the moment when a button is selected, like a timestamp?

    For instance, a simple table with an ID and a Date variable, how can I store in this variable each moment a button is pressed?

    Thanks a lot!!!!

  2. #2
    Hosting Team Leader silver trophybronze trophy
    cpradio's Avatar
    Join Date
    Jun 2002
    Location
    Ohio
    Posts
    4,807
    Mentioned
    141 Post(s)
    Tagged
    0 Thread(s)
    Run an INSERT or UPDATE command using the MySQL Function CURRENT_TIMESTAMP()
    Be sure to congratulate xMog on earning April's Member of the Month
    Go ahead and blame me, I still won't lose any sleep over it
    My Blog | My Technical Notes


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •