RE: [PHP-DB] Problem with MySQL and array loop

From: Date: Thu, 13 Dec 2001 10:01:18 +0000
Subject: RE: [PHP-DB] Problem with MySQL and array loop
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-14986@lists.php.net to get a copy of this message
On Thu, 2001-12-13 at 11:42, matt stewart wrote: > you're only printing stuff while i=0, i=1,....i=6. > therefore only 7 things come out. > either make the loop for($i=0;$i<=7;$i++), or for($i=0;$i<8;$i++). Oh! Thanks a million! It works like a charm now. So I guess the second alternative was right, after all. Isn't it funny, how one can become "code-blind" regarding one own's code? -Markus -- Markus Lervik Linux-administrator with a kungfoo grip Vaasa City Library - Regional Library markus.lervik@vaasa.fi +358-6-325 3589 / +358-40-832 6709

« previous php.db (#14986) next »