navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

Breaking one long column into many

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> Breaking one long column into many
Page: [1]
 
hzarabet

 

Posts: 1539
From: New Milford CT USA
Status: offline

 
Breaking one long column into many - 8/20/2002 22:55:38   
Hi All:

I am sure I just reinvented the wheel, but this is something I have been wondering how to do for a while and just got to work so I thought I' d share it.

I am using the DWR on a diet. I wanted to break one long column up into 3 equal smaller columns. Like this

Here is the html

<!--#include file=" ../_fpclass/fpdblib.inc" --><%
fp_sQry=" SELECT Count(*) AS Total FROM SHL_Promoters WHERE PromoterEmail <> ' 0' "
fp_sDataConn=" xxxxxx"
fp_iCommandType=1
%>
<!--#include file=" ../_fpclass/fpdbrgn1.inc" -->
<%
DIM iTotal
iTotal = FP_FieldVal(fp_rs," Total" )
%>
<!--#include file=" ../_fpclass/fpdbrgn2.inc" -->
<%Dim iRCount
iRCount = 0
%>
<table width = " 100%" ><tr>
<td width = " 33%" height = ' 0' valign = ' top' ><font face=" Arial" size=" 2" ><!--#include file=" ../_fpclass/fpdblib.inc" --><%
fp_sQry=" SELECT Promoter FROM SHL_Promoters WHERE PromoterEmail <> ' 0' Order By Promoter"
fp_sDefault=" "
fp_sNoRecords=" "
fp_sDataConn=" xxxxxx"
fp_iMaxRecords=0
fp_iCommandType=1
fp_iPageSize=0
fp_fTableFormat=True
fp_fMenuFormat=False
fp_sMenuChoice=" "
fp_sMenuValue=" "
fp_iDisplayCols=3
fp_fCustomQuery=False
BOTID=0
fp_iRegion=BOTID
%>
<!--#include file=" ../_fpclass/fpdbrgn1.inc" -->
<%iRCount = iRCount+1%>

<%=iRCount%>. <%=FP_FieldVal(fp_rs," Promoter" )%><br><%
If iRCount = Int(iTotal/3) OR iRCount = Int((iTotal/3)*2) then
response.write " </font></td><td width = ' 33%' height = ' 0' valign = ' top' > <font face=' Arial' size=' 2' >"
end if
%>
<!--#include file=" ../_fpclass/fpdbrgn2.inc" -->
</font></td>
</tr>
</table>


Hope this can be of use to someone

< Message edited by hzarabet -- 8/19/2002 10:58:16 PM >


_____________________________

http://www.SigningsHotline.com lists EVERY upcoming athlete autograph appearance in the US and Canada
Spooky

 

Posts: 26599
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Breaking one long column into many - 8/20/2002 23:20:55   
Nice :-)

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to hzarabet)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> Breaking one long column into many
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts