zahidpervaiz
Programmer
Hello,
How r u? I have one difficulty.I want to show records in
3 column from data base.
how can i do this.?
actually i want to show records in row and column.
but want to show records on conditions.
when i run this code it show all records in one column.
i want to show records in three(3) column
<!--#INCLUDE file="connection.asp" -->
<%
dim sql
%>
<HTML>
<HEAD><TITLE>Welcome...</TITLE>
</HEAD>
<BODY>
<table border="0" align=left>
<%
rs.Open "select * from accesseries",cn
dim a,b,c,d,e,f
while not rs.EOF
a = rs.Fields ("companyname"
.Value
b = rs.Fields ("PBox"
.Value
c = rs.Fields ("telno"
.Value
d = rs.Fields ("faxno"
.Value
e = rs.Fields ("email"
.Value
f = rs.Fields ("email"
.Value
%>
<tr>
<td><h3><font color="#FFCC33">
<%response.Write (a)%></font></h3></td></tr>
<tr><td><font color="black"><h4><b>
<%=b%>
</b></h4></font></td></tr>
<tr><td><font color="black">
<%="P.O.Box: "%><%=c%>
</font></td></tr>
<tr><td><font color="black">
<%="Phone: "%><%=d%>
</font></td></tr>
<tr><td><font color="black">
<%="Fax: "%><%=e%>
</font></td></tr>
<tr><td><font color="black">
<%="E mail: "%><%=f%>
</font></td></tr>
<%rs.MoveNext
wend
%>
</table>
</BODY></HTML>
How r u? I have one difficulty.I want to show records in
3 column from data base.
how can i do this.?
actually i want to show records in row and column.
but want to show records on conditions.
when i run this code it show all records in one column.
i want to show records in three(3) column
<!--#INCLUDE file="connection.asp" -->
<%
dim sql
%>
<HTML>
<HEAD><TITLE>Welcome...</TITLE>
</HEAD>
<BODY>
<table border="0" align=left>
<%
rs.Open "select * from accesseries",cn
dim a,b,c,d,e,f
while not rs.EOF
a = rs.Fields ("companyname"
b = rs.Fields ("PBox"
c = rs.Fields ("telno"
d = rs.Fields ("faxno"
e = rs.Fields ("email"
f = rs.Fields ("email"
%>
<tr>
<td><h3><font color="#FFCC33">
<%response.Write (a)%></font></h3></td></tr>
<tr><td><font color="black"><h4><b>
<%=b%>
</b></h4></font></td></tr>
<tr><td><font color="black">
<%="P.O.Box: "%><%=c%>
</font></td></tr>
<tr><td><font color="black">
<%="Phone: "%><%=d%>
</font></td></tr>
<tr><td><font color="black">
<%="Fax: "%><%=e%>
</font></td></tr>
<tr><td><font color="black">
<%="E mail: "%><%=f%>
</font></td></tr>
<%rs.MoveNext
wend
%>
</table>
</BODY></HTML>