You are here: Need help with simple code « PHP Programming Language « IT news, forums, messages
Need help with simple code

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация