Numbered Repeating region
I want to dynamically display numbers in front of my records. I attempted (please see attached)
I want to dynamically display numbers in front of my records. I attempted (please see attached)
Since you are using a table display, the nested <ol> and <li> tags can't be used to number since they will reset with each table row.
The best solution is probably to manually keep track of the row number in the php and echo the current row number manually instead of using an <ol> or <li> tag.
If you attach the page I can help (I think you attached the wrong .php page in your original post)
Thank you.
I have 3 versions of the page which are from 2 different DB tables. I will attach the remaining 2.
I would like the numbers to appear in front of the horse name. horse_name
I need to publish all 3 versions.
Here is how you can do it. Find the opening of the repeated region that will look like:
<?php do { ?>
Change it to:
<?php $horseNumber=0; ?>
<?php do { ?>
<?php $horseNumber++; ?>
Then inside the loop you can show the count before the horse name with:
<?php echo($horseNumber); ?>
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.