Reply to Re: how best to avoid brute-force looping?

Your name:

Reply:


Posted by Captain Dondo on 04/17/06 03:44

On Sat, 15 Apr 2006 01:08:23 +0200, Henk Verhoeven wrote:

> Hi Captain,
>
> Something like this:?
>
> for ($count=1; $count<$max; $count++) {
> $subArray = $myArray[$count];
> print "
> <td><input name='brgf$count' type=text value='$subArray[brgf]'
> maxLength='5' size='5'></td>
> > <td><input name='brgt$count' type=text value='$subArray[brgt]'
> maxLength='5' size='5'></td>
> (..)
>
> Of course your array would have to be two-dimensional like:
> $myArray[1]['brgf'] = 0.000000;
> $myArray[1]['brgt'] = 1.000000;
> $myArray[1]['axa'] = 1;
> $myArray[2]['brgf'] = 2.000000;
> $myArray[2]['brgt'] = 2.000000;
>
> Greetings,
>
> Henk.

Actually that's perfect, as I want the file to have that structure, and
I've already worked out a way to split the nubmers off the tags and create
a two-dimensional array....

--
o__
,>/'_ o__
(_)\(_) ,>/'_ o__
Yan Seiner, PE (_)\(_) ,>/'_ o__
Certified Personal Trainer (_)\(_) ,>/'_ o__
Licensed Professional Engineer (_)\(_) ,>/'_
Who says engineers have to be pencil necked geeks? (_)\(_)

[Back to original 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

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