RE: [PHP] incromenting $counter in a whloop

From: Date: Sun, 09 Feb 2003 05:40:19 +0000
Subject: RE: [PHP] incromenting $counter in a whloop
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-134943@lists.php.net to get a copy of this message
> was wondering how you would incroment $counter in a while loop.. i want to > print it out next to each record for a record counter on a web page... while(whatever) { $counter++; echo "You are on loop #$counter"; } ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/

« previous php.general (#134943) next »