Show create date of record - newbie

Discussion in 'PHP' started by smallmerchant, May 21, 2010.

  1. #1
    I know this is a stupid question but I am using a script that created several fields in a table (mysql). However, none of the fields are "create date" which seems so obvious. Is there a way to pull the create date of a record(s) in a database even if it's not a field in the table? I checked phpMyAdmin and couldn't find anything.

    All I want to do is display records based on create date.

    Thanks!
     
    smallmerchant, May 21, 2010 IP
  2. lukeg32

    lukeg32 Peon

    Messages:
    645
    Likes Received:
    19
    Best Answers:
    1
    Trophy Points:
    0
    #2
    Not unless you recorded the data when you did it......
    Next time, include a datetime field and just insert the mysql now() function to it.
     
    lukeg32, May 21, 2010 IP
  3. Trikun3

    Trikun3 Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    There is no function that logs when a query has been made by either the mysql-server or phpmyadmin instance. You would have to do what lukeg32 said, or use the int type and store the timestamp.
     
    Trikun3, May 22, 2010 IP