Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

populating an HTML table from a record set

Status
Not open for further replies.

loganswell

Programmer
Dec 28, 2000
111
GB
If this is a FAQ, I apologise but I couldn't find the answer.

I have a page where my record set populates an HTML table. It works fine for a single column, but I want two columns... ie rec1 in (row 1 cell-1) rec2 in (row 1 cell-2) rec 3 in (row 2 cell-1) and so on. I bet there is a simple solution!!

Does anyone out there have it?

Regards,

Jim
 
response.write &quot;<table><tr>&quot;
while not rs.eof
response.write &quot;<td>&quot; & rs(0) & &quot;</td>&quot;
rs.movenext
wend
response.write &quot;</tr></table>&quot;

br
Gerard
(-:

| Do it!
|
V
 
Um..
response.write &quot;<table>&quot;
With rs
Do Until .eof
response.write &quot;<tr>&quot;
For ctr = 1 to 2
If Not .eof
response.write &quot;<td>&quot; & .Info & &quot;</td>&quot;
.MoveNext
End If
Next
response.write &quot;</tr>&quot;
Loop
response.write &quot;</table>&quot;
end with
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top