how to display image from database in reverse order

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sebbem
    New Member
    • Mar 2008
    • 1

    how to display image from database in reverse order

    How would one pull the images out in the reverse order? i.e. The last one in the database displayed first.
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    Welcome to The Scripts!

    Your post has been moved into a new thread, because the original thread had no longer any focus and your question did not really belong in there.

    What is 'reverse' order here? You have one image (I imagine) in one row. So in order to pull them out say, in reverse order by name, you do the select with an ORDER BY field_name DESC.

    Ronald

    Comment

    • Markus
      Recognized Expert Expert
      • Jun 2007
      • 6092

      #3
      Originally posted by sebbem
      How would one pull the images out in the reverse order? i.e. The last one in the database displayed first.
      You should have a field(`Time_Upl oaded`) in your table that is ON UPDATE CURRENT TIMESTAMP, and then do as Ron said and ORDER BY `Time_Uploaded` DESC

      Regards.

      Comment

      Working...