How to get the latest entries from a mysql database?

Discussion in 'MySQL' started by scutari, Aug 16, 2008.

  1. #1
    So the problem is this:

    I want to create a table( used a javascript library to create a client side one) which launches recent articles, most viewed, top rated.

    Now, how to arrange data in the database so that I get information from it in that way?

    Should i use for example a timestamp data type to get the recent items added on the database, if so how to do that?
     
    scutari, Aug 16, 2008 IP
  2. jasbloger

    jasbloger Peon

    Messages:
    31
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    during table creation use timestamp field that have default now()
     
    jasbloger, Aug 16, 2008 IP