close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Repeating table not working

Thread began 1/16/2017 1:04 pm by john70964 | Last modified 1/17/2017 5:35 pm by Ray Borduin | 2205 views | 7 replies |

john70964

Repeating table not working

Hello
I have been trying to create a repeating table but somehow it never does what I expect.
I get a line - Cotton T-Shirt9.99 Jacket Blue50 Jacket Navy30
Instead of 3 lines

Cotton T-Shirt9.99
Jacket Blue50
Jacket Navy30
Also no space Jacket Navy 30
I will post the page
Thank you
John

Sign in to reply to this post

john70964

Please see PM

Sign in to reply to this post

Ray BorduinWebAssist

You will want to move the <tr> tag so it is inside of the repeated region. You may have to do that from code view. If you attached the page I could be more specific.

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

john70964

Thanks Ray
I moved the opening <tr> tag and that has caused the lines to repeat correctly ie in a list.
Cotton T-Shirt9.99
Jacket Blue50
Jacket Navy30
There should be a space between the name and the price. Can you please advise on this point?
I will attach the code, I hope the zip format is OK for you.
Thank you
John

Attached Files
RepeatTable.zip
Sign in to reply to this post

Ray BorduinWebAssist

On line 62 you have:

php:
<?php echo $row_Recordset1['ProductName']; ?><?php echo $row_Recordset1['ProductPrice']; ?>


Just add a space where you want one like:

php:
<?php echo $row_Recordset1['ProductName']; ?> <?php echo $row_Recordset1['ProductPrice']; ?>



Even better add a dollar sign and decimals like:

php:
<?php echo $row_Recordset1['ProductName']; ?> $<?php echo number_format($row_Recordset1['ProductPrice'],2); ?>
Sign in to reply to this post
Did this help? Tips are appreciated...

john70964

Many thanks Ray for that clarification. Easy when you know how!

To construct the table I used the Web Assist/Database/RepeatingTable method. So it seems that this is not working quite as it should on my machine, so I will make some notes for the future.
I was expecting each item eg Product - Price etc to appear in a separate column so that the columns would line up neatly.
Can that be achieved anyway?
Regards

John

Sign in to reply to this post

Ray BorduinWebAssist

It appears there is an issue with the repeated table in the latest version of DW. It is not including the <tr> tag in the repeated region. I'll log the bug and have to look into getting it fixed in the next update.

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

john70964

Thanks Ray
I am still working with CS6
Just thought I would let you know.
Regards

John

Sign in to reply to this post

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...