Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 18th, 2006, 07:52 AM
Authorized User
 
Join Date: Apr 2006
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

 
Old April 19th, 2006, 01:43 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 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?





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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.