Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > Adobe Web Programming > Dreamweaver (all versions)
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Dreamweaver (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 18th, 2006, 07:52 AM
Authorized User
 
Join Date: Apr 2006
Location: Perth, , Australia.
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default Displaying data in a table

I'm trying to display data in rows rather than columns in a table - can this be done? In other words, the recordset is displayed in the table with the records running down the page rather than across - like this:
FieldA FieldA FieldA etc etc
FieldB FieldB FieldB etc etc
FieldC FieldC FieldC etc etc

I'm using DW MX 2004. Can this be done?

Mike

Reply With Quote
  #2 (permalink)  
Old April 19th, 2006, 01:43 PM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Hi Mike,

Yeah, this can be done, but not with DW MX 2004 directly. You'll need to some hand coding. Basically, you'll need to loop through the recordset and write out a <td> for each record.

You also need to write out a <tr> every three records. Inside the loop, you can keep track of the number of records. You can then use the Mod operator to determine whether you need to write out a </tr> and start a new one.

HtH

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
While typing this post, I was listening to: LAX by Xzibit (Track 2 from the album: Weapons Of Mass Destruction) What's This?
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Displaying record from a look up table stecol Classic ASP Databases 2 February 1st, 2007 10:31 AM
Displaying DetailsView for New/Empty Data Table Sheri B ASP.NET 2.0 Basics 5 December 7th, 2006 03:08 PM
Displaying Excel data in a table badgolfer ASP.NET 1.0 and 1.1 Basics 6 January 6th, 2006 04:25 AM
Displaying Access table data into Msflexgrid using Kaustav Pro VB Databases 0 September 25th, 2005 01:08 PM
Help displaying data in table Calibus Classic ASP Databases 3 July 2nd, 2004 08:40 AM



All times are GMT -4. The time now is 03:15 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.