close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

MySqli Vertical Repeating Region

Thread began 9/03/2018 6:46 am by astrostrom | Last modified 9/10/2018 11:04 am by Ray Borduin | 442 views | 2 replies |

astrostrom

MySqli Vertical Repeating Region

Hi
I have a list of over 100 names which I would like to put in 4 alphabetically ordered columns using the last name.
It is pretty easy to make a horizontal repeating region with the MySqli SBs.

Such as:

A B C D
E F G H

However, is it possible to do this vertically?

A E I
B F J
C G K
D H L

etc.

It does not seem natural to view these names listed in horizontal rows especially if one includes the first and middle names as well..

An alternative work around would be to have 4 (or more) Recordsets and separate corresponding repeating regions but some additional code
would have to be inserted into each Recordset showing only records 1-25, 26-50. 51-75, 76-100, etc.
I am not sure how to do this either.

Thanks for any advice.

Sign in to reply to this post

Ray BorduinWebAssist

The way to do it is to get the number of records from the recordset and put the results into four divs that use css for: float:left; width:25%.

You would have to check the position in the recrord and write a new div when every 1/4 of the way through the results.

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

astrostrom

Thanks Ray,

I did just that. For those interested in the solution, I created 4 different recordsets using the "limit clause" to select the desired records for each column and then displayed these vertically with corresponding repeating regions in separate divs


rsName1

"SELECT * FROM names ORDER BY last_name ASC limit 25, "

displays records 1-25


rsName2

"SELECT * FROM names ORDER BY last_name ASC limit 25, 25 "

displays records 25-50


rsName3

"SELECT * FROM names ORDER BY last_name ASC limit 50, 25 "

displays records 50-75

etc.

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