在ASP中怎么横向显示记录?急急急~~~~

来源:百度知道 编辑:UC知道 时间:2024/05/06 16:58:38
在ASP中怎么横向显示记录?
问题1.我想每行显示2条记录,只显示一行怎么写,请大家帮助!
问题2.另:如果每行显示2条记录,总共显示3行怎么写~~~~
--------------------------------------------------------
问题1希望显示效果为:·记录1 | · 记录2
---------------------------------------------------------------
问题2希望显示效果为:·记录1 | · 记录2
·记录3 | · 记录4
·记录5 | · 记录6
------------------------------------------------------------
请大侠回答具体点,小弟太菜了!

Public Sub adlist(num,sid,eid,pwidth,pheight,n,tpwz)
Response.write ("<table width=100% cellspacing=0 cellpadding=0 border=0 >")
Sqlad = "Select top "&num&" ad_id,ad_name,ad_piccount,ad_pic,ad_link from articlelch_ad where "
Sqlad =Sqlad& "ad_id >= "&sid&" and ad_id<="&eid&" order by ad_id asc"
set Rsad = conn.execute(Sqlad)
if Rsad.eof and rsad.bof then
Response.write "<div align=center>还没有任何广告。</div>"
else
do while not Rsad.eof
Response.write "<tr>"
for i = 1 to n
Response.write "<td align=center width="&pwidth&">"
if tpwz=1 then
if rsad("ad_piccount")>0 then
response.write ("<a href="&rsad("ad_link")&" target=_blank>"&replace(rsad("ad_pic"),"width=200 height=1