|
Posted by Bob Bedford on 03/08/06 16:22
Hello there,
Little problem I can't solve. Its seems easy but I can't find out a simple
solution. Maybe a clever way already exists:
I've a site where people may have up to 5 pictures.
They can add, remove, change pictures as they want. The problem is when
users remove pictures at beginning and in the middle.
User X uploads 5 pictures.
Then he decides to remove picture 1 and 3.
Actually the resulting pictures are 2, 4 and 5.
I want to move (by renaming) the pictures to have finally 1,2,3
How can I do this ? Pseudo code would be great, as Actually I'm trying to
look in 2 array to keep trace where they are free slots and used pictures
and trying a complex move between array. Isn't a good way, I know, but I
can't find a easy way.
Bob
[Back to original message]
|