Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Displayig Recordsets ACROSS a page

Status
Not open for further replies.

jedel

Programmer
Jan 11, 2003
430
AU
OK,

The more I read about this the more confused I'm becoming, Here is the page that I am describing in this post:


On the right hand side of the page there are two events. This is merely a record set in a repeating region that is limited to only two records at a time displayed in date order.

What I would like to do is display three events horizontally across the bottom of the page.

I thought using an array might be the go, but alas, this is where I'm lost. I understand how and array works, but I cannot find anything that integrates an array using record sets.

Some ideas, examples, code or places to go would be greatly appreciated

-------------------------------------------------------------
"The most overlooked advantage of owning a computer is that if they foul up there's no law against whacking them around a bit."
 

Why not simply change your db query that fills your recordset to return 3 records, instead of 2 ? Then you've got the three records to play with.

Manipulating them into a horizontal list vs a vertical list is basically the same code, depending on how you've created the vertical list. If it's a set of divs, then it should be exactly the same - your CSS should make them horizontal. Same again if it is a list (e.g. ul) - CSS will make it work the way you want. Unfortunately, if it's tables on the other hand (naughty you), then you just change the separators to <td> at the start of each iteration and </td> at the end of each iteration, with <table><tr> before the loop and </tr></table> after it. This is why people recommend table-less markup, as it is more flexible to separate style from content.

Other than that, I'm not sure what you're finding so difficult - you've already done it one way - the foundations (if not the exact code) are there to do it the other.



=======================================
LessThanDot - The IT Community of the 21st Century

A smile is worth a thousand kind words. So smile, it's easy! :)
 
To make an array from a recordset use GetRows. See
However I don't at the moment see what an array OR a recordset has got to do with your page layout.

___________________________________________________________
If you want the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
Steam Engine Prints
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top