PHP order pic help.

Discussion in 'PHP' started by micromark, Oct 4, 2007.

  1. #1
    Hi,


    I have this line of code which orders my pics by their 'upload date' (The command is in the pink :))



    What i need it do do is reverse it so it shows the latest uploaded pics not the first ever uploaded pics---understanding me ?

    Any tips ?



    $sql="select * from members,photos where members.username=photos.username and approved='Y' and active=1 order by photos.upldate";
     
    micromark, Oct 4, 2007 IP
  2. micromark

    micromark Peon

    Messages:
    466
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Dont worry i have sorted it myself - Simply put this in at the end 'upldate desc'
     
    micromark, Oct 4, 2007 IP