Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. 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 Databases 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 March 10th, 2004, 03:52 PM
Authorized User
 
Join Date: Aug 2003
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default arranging records from database

hello,
I am trying to develop a shopping site in ASP. For this I need to fetch product info from database abd arrange them in rows and columns.
I want products to be arranged in 3 col & 2 rows...i.e total 6 product on 1 page .

plz guide me as to how to arrange records 1> page wise i.e six records per page 2> arrange records in rows & columns.

u can see wat I am trying to achieve at http://www.romanapole.com/top.asp

I will be greatly obliged to all those who reply.

I am a final year student and trying to do this for my project. plz help.

regards

moushumi
 
Old June 5th, 2004, 12:38 AM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 171
Thanks: 0
Thanked 1 Time in 1 Post
Default

This question ever get addressed?

 
Old June 5th, 2004, 12:56 AM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 171
Thanks: 0
Thanked 1 Time in 1 Post
Default

I think this'll work okay.

set rs = server.createobject("adodb.recordset")
sql = "SELECT * FROM table"
rs.Open sql, cn '<--your connection object--
if not rs.eof then
    response.write "<table><tr>"
    do while not rs.eof
    count = count + 1
    response.write "<td>" & oRS("Score") & "%</td>"
    if count = 3 then
        response.write "</tr><tr>"
        count = 0
    end if
    oRS.movenext
    loop
    response.write "</tr></table>"
end if
oRS.close
set oRS = nothing







Similar Threads
Thread Thread Starter Forum Replies Last Post
multiple records in database svk SQL Language 1 May 18th, 2008 03:59 AM
Arranging controls according to window resolution bijgupt VB.NET 2002/2003 Basics 0 June 7th, 2006 03:47 AM
Navigating records in a database don baroo Classic ASP Databases 3 December 8th, 2004 07:09 AM
delete records in database shoakat Classic ASP Databases 9 October 26th, 2004 08:31 PM
arranging records from database moushumi Classic ASP Basics 3 March 15th, 2004 12:15 AM





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