Re: Loop and arrays

From: Date: Thu, 16 Nov 2000 15:13:18 +0000
Subject: Re: Loop and arrays
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-25703@lists.php.net to get a copy of this message
Anna wrote: > > I have such code, but something is wron...with for loop.. > > ... > > for($i=0; $i<$daudz; i++) > { > for($j=0; $j<50; j++) > { > if ($arr[i] == $kods[j][0]) > { > echo("<p>Prece: {$kods[j][1]}</p>\n"); Hi! Pay attention to variables $i and $j. You have in some places just i and j. Hope this helps. :) -- Pavel a.k.a. Papi

« previous php.general (#25703) next »