i got it tnx...
while(whatever){
//record code here
//and echo $counter
$counter++}
- Original Message -
From: "Beauford.2002" <[EMAIL PROTECTED]>
To: "Sunfire" <[EMAIL PROTECTED]>
Sent: Sunday, February 09, 2003 2:14 AM
Subject: Spam: Re: [PHP] i
> 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 Professiona
On Sunday 09 February 2003 13:37, Sunfire wrote:
> 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...
manual > "Language reference" > "Expressions"
That should give you enough inspiration.
-
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 -
4 matches
Mail list logo