SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    May 2011
    Posts
    242
    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
    5,240
    Mentioned
    155 Post(s)
    Tagged
    0 Thread(s)
    Run an INSERT or UPDATE command using the MySQL Function CURRENT_TIMESTAMP()


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
  •