Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics 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 July 14th, 2004, 04:43 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 331
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to qazi_nomi
Default Urgent Displaying record in Horizantal order

I have a table in database which has the information about some products. I want to display these products in a table where 5 products in one row.
I can use normal way like one record per row but I want to display more than one records per row. So please help me as soon as possible.

Numan
--------------------------------------------------
Love is the most beautiful thing of this world. So do this !
__________________
(*_*)

Numan
--------------------------------------------------
It is not important what you get But important is  how you got it
 
Old July 14th, 2004, 04:53 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi there,

Initialise a counter variable to 1
Code:
ctr=1
Then, within your While RS.EOF ... WEND loop, you got to check
Code:
IF ctr mod 5 = 0 then 
    Response.write "</tr>"
    ctr=1
END IF
This would break the line after every 5 product and re-initilise it to 1 again.

Hope that helps.
Cheers!

_________________________
- Vijay G
Strive for Perfection





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
problem displaying records in order of time ,date method PHP Databases 3 July 25th, 2006 08:16 PM
Displaying a specific record on a webpage sswingle Classic ASP Basics 8 March 20th, 2006 12:30 AM
Displaying time in chronological order mg1966 Classic ASP Databases 3 January 24th, 2005 02:11 PM
Displaying New record Count tycoon Access ASP 1 February 5th, 2004 10:33 PM





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