Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Links from access database (2 columns)
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Links from access database (2 columns)

 Post Reply Post Reply
Author
pjb007 View Drop Down
Groupie
Groupie


Joined: 03 September 2004
Location: United Kingdom
Status: Offline
Points: 185
Post Options Post Options   Thanks (0) Thanks(0)   Quote pjb007 Quote  Post ReplyReply Direct Link To This Post Topic: Links from access database (2 columns)
    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.
Back to Top
bootcom View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 February 2005
Location: United Kingdom
Status: Offline
Points: 259
Post Options Post Options   Thanks (0) Thanks(0)   Quote bootcom Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.