Recently updated data from database

Discussion in 'PHP' started by cuni18, Sep 4, 2008.

  1. #1
    Hi

    I want to display recently updated movies at netbaza.net ,
    can anybody write the code for that

    you will get rep + :)

    Thanks in advance ?
     
    cuni18, Sep 4, 2008 IP
  2. JAY6390

    JAY6390 Peon

    Messages:
    918
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #2
    so you want someone to just write you a script for nothing (oh, except rep :rolleyes:)?
     
    JAY6390, Sep 4, 2008 IP
  3. cuni18

    cuni18 Well-Known Member

    Messages:
    314
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    105
    #3
    hm i think its not that big problem , i don"t need the whole script , just some pointers,

    i was thinking to add a new field to database and everytime i update movie higher number is written in this field ..or is it better to use date ?
    and then i just show data sorted from highest number to lowest
     
    cuni18, Sep 4, 2008 IP
  4. JAY6390

    JAY6390 Peon

    Messages:
    918
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #4
    either method will work just as well as the other (assuming your ID's auto increment). And yes, you just sort by that value
     
    JAY6390, Sep 4, 2008 IP