close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Numbered Repeating region

Thread began 5/17/2019 12:03 pm by jo271221 | Last modified 5/20/2019 9:20 am by Ray Borduin | 314 views | 3 replies |

jo271221

Numbered Repeating region

I want to dynamically display numbers in front of my records. I attempted (please see attached)

Sign in to reply to this post

Ray BorduinWebAssist

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)

Sign in to reply to this post
Did this help? Tips are appreciated...

jo271221

auto number records

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.

Sign in to reply to this post

Ray BorduinWebAssist

Here is how you can do it. Find the opening of the repeated region that will look like:

php:
<?php do { ?>


Change it to:

php:
<?php $horseNumber=0?>

<?php 
do { ?>
<?php $horseNumber
++; ?>



Then inside the loop you can show the count before the horse name with:
<?php echo($horseNumber); ?>

Sign in to reply to this post
Did this help? Tips are appreciated...

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

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.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...