Simple loop problem

From: Date: Thu, 06 Jul 2000 17:54:16 +0000
Subject: Simple loop problem
Groups: php.general 
Request: Send a blank email to php-general+get-5252@lists.php.net to get a copy of this message
I've tried to figure out what my problem is so as to not make any more of a fool of myself.... but I cant. here's the simple code (the original was actually useful, but i was trying to find the bug and this is what i narrowed it down to): $i = 0; $j = 0; while($i<128) { while($j<128) { printf("<br>%d\t%d\n",$i,$j); $j++; } $i++; } heres the problem: it only prints one instance of the nested loop... that is, it does not increment $i and it does not rerun the inside loop. I know there is some stupid mistake im making, but can you help me anyway? Thanks a lot Ed

« previous php.general (#5252) next »