You are here: Re: newbie - add 15 to list then reorder « All PHP « IT news, forums, messages
Re: newbie - add 15 to list then reorder

Posted by version2 on 08/31/06 07:18

Hi Everyone,

sorry for the confusion, once i have added 15 to one of the numbers and
it has been sorted from lowest to highest it will look like this.

10, 30, 35, 40

assuming that i added 15 to 20 giving me 35.

now take that list 10, 30, 35, 40 and give them all new values 10, 20,
30, 40

so a break down of before and after

10 = 10
30 = 20
35 = 30
40 = 40

i hope this helps

thanks



version2 wrote:
> Hi there,
>
> I am outputing a list of 10 values.
>
> 10, 20, 30, 40, etc
>
> I can add 15 to one of the values then reorder the values from smallest
> to highest but i want to update every single value and assign it values
> increamenting by 10
>
> so after the update the second number of 20 and add 15 I get
>
> 10, 30, 35, 40
>
> now i want to re output the values above as
>
> 10, 20, 30, 40
>
> can someone please help.

 

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

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