Re: Re: [PHP] incromenting $counter in a whloop

From: Date: Sun, 09 Feb 2003 16:33:55 +0000
Subject: Re: Re: [PHP] incromenting $counter in a whloop
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-134950@lists.php.net to get a copy of this message
i got it tnx... while(whatever){ //record code here //and echo $counter $counter++} ----- Original Message ----- From: "Beauford.2002" <beauford.2002@rogers.com> To: "Sunfire" <rusty_81@msn.com> Sent: Sunday, February 09, 2003 2:14 AM Subject: Spam: Re: [PHP] incromenting $counter in a whloop > This is one way, or you could use a for loop. > > $counter = 1; > > While (whatever) { > > record code goes here > echo $counter; > $counter = $counter + 1; > } > ----- Original Message ----- > From: "Sunfire" <rusty_81@msn.com> > To: <php-general@lists.php.net> > Sent: Sunday, February 09, 2003 12:37 AM > Subject: [PHP] incromenting $counter in a whloop > > > > hi.. > > > > 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... > > > > > > > > > > > > --- > > Outgoing mail is certified Virus Free. > > Checked by AVG anti-virus system (http://www.grisoft.com). > > Version: 6.0.443 / Virus Database: 248 - Release Date: 1/10/2003 > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.443 / Virus Database: 248 - Release Date: 1/10/2003

« previous php.general (#134950) next »