Print Page | Close Window

Links from access database (2 columns)

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=15173
Printed Date: 30 March 2026 at 3:20am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Links from access database (2 columns)
Posted By: pjb007
Subject: Links from access database (2 columns)
Date Posted: 21 May 2005 at 10:55am
At the moment I can display a database driven links page in ont column using ASP code as follows:
 
   Response.Write ("<a href=""" & "http://" & RSUser("url") & """ target=""_blank"">")
   Response.Write (RSUser("titletext")) 'the title of the website
   Response.Write ("</a>") 
   Response.Write ("<br/>")
   Response.Write (RSUser("info")) 'info about website 
   Response.Write ("<br/>")
 
That displays a list list of links, I would like to adapt that so that there are two colums of links reading in order as shown below
 
A    B
[empty line]
C    D
[empty line]
E    F
[empty line]
G  
 
Is this possible using an access database (I would order the links on the page not in the database, I have the command for ordering the list.



Replies:
Posted By: bootcom
Date Posted: 21 May 2005 at 10:59am
Well you could do it the EASY way ....


' Initialise counter
x = 0

Do while not rs.eof

link stuff here

' Here's yer new line
if x mod 2 = 0 then response.write <br>

x = x + 1

rs.movenext
loop




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net