Try
reset($a); before the first while, and reset($b) just before the second in
the body if the first.
On Thursday 15 November 2001 06:56 am, you wrote:
> From: [EMAIL PROTECTED]
> Operating system: Linux
> PHP version: 4.0.5
> PHP Bug Type: Scripting Engine problem
> Bug description: 2 while list each dont work
>
> <?php
>
> $a[0]="x";
> $a[1]="y";
> $b[0]="z";
> $b[1]="w";
> $b[2]="u";
>
> while (list($key,$val)=each($a) )
> {
> while (list($key2,$val2)=each($b) )
> {
> print "$key: $val - $key2: $val2<br>";
> }
> }
> ?>
>
> './configure' '--with-mysql' '--with-apache=../apache_1.3.20'
> '--with-gd=../gd-1.8.3' '--enable-track-vars'
--
Andrey Hristov
Web Developer
Icygen Corporation
BUILDING SOLUTIONS
http://www.icygen.com
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]