AdonaiEchad wrote:
> Is there a php funching like Coldfusion that counts the
rows for you as the
> "Rec" listing above.
There is no particular function, but you simply set a
variable as a
counter and display that.
Dreamweaver uses a do... while loop to display a repeat
region, so you
need to initialize the counter outside the loop, and then
increment it
inside like this:
$counter = 1;
do {
// this is your repeat region
// use the following line to display and increment the
counter
echo $counter++;
} while ($row_recordsetName =
mysql_fetch_assoc($recordsetName));
The increment operator (++) adds 1 to the number after
displaying it.
--
David Powers
Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
http://foundationphp.com/