SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Wizard donboe's Avatar
    Join Date
    Jun 2010
    Location
    Netherlands
    Posts
    2,139
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Stupid count question

    I have some galleries. The site owner asked me to order them by the date they were added DESC. No problem so far. But they should be numbered (ASC) as well ( numbers are displayed on the thumbnail)! Before I ordered them by id ASC so could simply use the id as the number but now I can't use this any longer, and I can't get my head around it how I get those numbers going from 1 till the number available while number 1 is actually the last record.
    “Good artists copy, great artists steal” (Pablo Picasso - 1934)

  2. #2
    SitePoint Wizard donboe's Avatar
    Join Date
    Jun 2010
    Location
    Netherlands
    Posts
    2,139
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have this one solved in my server side scripting. Thanks
    “Good artists copy, great artists steal” (Pablo Picasso - 1934)


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
  •