I have 182 records in a table and instead of listing them in one long line, I have the following code that puts them in three columns. My problem is that the third column always has a blank as the first record. I don't know why, and there are no blanks in my database table. If anybody has any idea, I'd appreciate the input. Thanks.
<!--Database info-->
<%
Set oRs = objConn.Execute("SELECT * FROM newsletters order by friendly_name;"
%>
<%
response.write "<table><tr>"
count = 1
do while not ors.eof
if count mod 3 = 0 then
'there are 3 in the current row, so end the row and start a new one...
response.write "</tr><tr>"
end if
'add the cat name to another column
response.write "<td valign=top>" & oRS("friendly_name" & "</td>"
'increment the count
count = count+1
oRS.MoveNext
loop
oRs.Close
objConn.Close
Set oRs = Nothing
Set objConn = Nothing
%>
<!--Database info-->
<%
Set oRs = objConn.Execute("SELECT * FROM newsletters order by friendly_name;"
%>
<%
response.write "<table><tr>"
count = 1
do while not ors.eof
if count mod 3 = 0 then
'there are 3 in the current row, so end the row and start a new one...
response.write "</tr><tr>"
end if
'add the cat name to another column
response.write "<td valign=top>" & oRS("friendly_name" & "</td>"
'increment the count
count = count+1
oRS.MoveNext
loop
oRs.Close
objConn.Close
Set oRs = Nothing
Set objConn = Nothing
%>