Hi, I may be totally off here but why don't you add a column named "sort_order" (or sngSortOrder my convention) and sort your images accordingly? Cheers, -- Volkan Ozcelik +>Yep! I'm blogging! : http://www.volkanozcelik.com/volkanozcelik/blog/ +> My projects/studies/trials/errors : http://www.sarmal.com/