asp如何分行问题!急!

来源:百度知道 编辑:UC知道 时间:2024/05/14 15:05:35
<%sub myhotel(classid)%>
<%
if classid=1 then
theclass=3
sql_top="select top 6 * from hotel where op_type like '%"&theclass&"%' order by hots asc,id desc "
end if
if classid=2 then
theclass=1
sql_top="select top 6 * from hotel where op_type like '%"&theclass&"%' and (star=12 or star=13) order by hots asc,id desc "
end if
if classid=3 then
theclass=1
sql_top="select top 6 * from hotel where op_type like '%"&theclass&"%' and (star=14 or star=15) order by hots asc,id desc "
end if
if classid=4 then
theclass=1
sql_top="select top 6 * from hotel where op_type like '%"&theclass&"%' and (star=16 or star=17) order by hots asc,id desc "
end if
set rs_top=Server.CreateObject("ADODB.Recordset")
rs_top.open sql_top,conn,1,1
if (rs_top.eof and rs_top.b

用表格定好位置,比如分好三行三列,再在相对应的位置上显示出来就行了。

介绍个好的电驴资源下载站
悬赏分:0 - 离问题结束还有 14 天 23 小时
要新崛起的网站,不要老站

里面插入html代码<br>就是换行