How to order the images in a mysql database?

Posted by user305270 on Stack Overflow See other posts from Stack Overflow or by user305270
Published on 2010-04-01T01:13:56Z Indexed on 2010/04/01 1:33 UTC
Read the original article Hit count: 269

Filed under:

Hy!

Here is my problem: i have a profile and this profile has for example 100 images.

When someone visit this profile the first image will be the first result of my query that sorts by updated_at.

But if the user would want to put the image with the (id = 8) to be the first, then (id = 22) then (id = 88) and so on?

I need to put another field or is really necessary a new table to make a custom sort on images? and maybe someone explain this to me how to do?

thanks, i appreciate your help ;)

© Stack Overflow or respective owner

Related posts about mysql