Notices
Results 1 to 3 of 3

Thread: Automatic date in database

  1. #1 Automatic date in database 
    New Member
    Join Date
    Sep 2010
    Posts
    4
    Hi,
    i have a problem, i am creating a forum where you can post topics, add comments and things like that.
    I've already programmed my whole site, but when i add a comment the date doesn't show, this is because i didn't want to let the user type in the date and time himself, but this must be done automaticly.
    I know that i have to do something in my database to let this work, but i don't know what.

    Must i enter some kind of code into my database?

    Thanks in advance!

    MichaŽl S.


    Reply With Quote  
     

  2.  
     

  3. #2  
    Forum Junior c186282's Avatar
    Join Date
    Dec 2008
    Posts
    208
    If your database is an SQL type then you can use the now() function.


    Reply With Quote  
     

  4. #3  
    New Member
    Join Date
    Sep 2010
    Posts
    4
    thanks alot, it worked.
    Reply With Quote  
     

Bookmarks
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
  •